[PATCH 0/4] hw: Minor simplifications using proper QOM getter macros

Philippe Mathieu-Daudé posted 4 patches 11 months, 2 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20230523061207.48818-1-philmd@linaro.org
Maintainers: Sergio Lopez <slp@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>, "Michael S. Tsirkin" <mst@redhat.com>, Marcel Apfelbaum <marcel.apfelbaum@gmail.com>, Richard Henderson <richard.henderson@linaro.org>, Eduardo Habkost <eduardo@habkost.net>, Gerd Hoffmann <kraxel@redhat.com>
hw/core/cpu-common.c  | 3 +--
hw/i386/microvm.c     | 3 +--
hw/pci/pci.c          | 4 +---
hw/usb/hcd-ehci-pci.c | 2 +-
4 files changed, 4 insertions(+), 8 deletions(-)
[PATCH 0/4] hw: Minor simplifications using proper QOM getter macros
Posted by Philippe Mathieu-Daudé 11 months, 2 weeks ago
Enforce QOM style. Besides, using the proper QOM macros
slightly simplifies the code.

Philippe Mathieu-Daudé (4):
  hw/core/cpu: Simplify realize() using MACHINE_GET_CLASS() macro
  hw/i386/microvm: Simplify using object_dynamic_cast()
  hw/pci/pci: Simplify pci_bar_address() using MACHINE_GET_CLASS() macro
  hw/usb/hcd-ehci-pci: Simplify using DEVICE_GET_CLASS() macro

 hw/core/cpu-common.c  | 3 +--
 hw/i386/microvm.c     | 3 +--
 hw/pci/pci.c          | 4 +---
 hw/usb/hcd-ehci-pci.c | 2 +-
 4 files changed, 4 insertions(+), 8 deletions(-)

-- 
2.38.1


Re: [PATCH 0/4] hw: Minor simplifications using proper QOM getter macros
Posted by Michael Tokarev 11 months ago
23.05.2023 09:12, Philippe Mathieu-Daudé wrote:
> Enforce QOM style. Besides, using the proper QOM macros
> slightly simplifies the code.

Applied to my trivial-patches branch (Maybe it's time to resurrect it).

Thanks,

/mjt

Re: [PATCH 0/4] hw: Minor simplifications using proper QOM getter macros
Posted by Michael S. Tsirkin 10 months, 2 weeks ago
On Thu, Jun 08, 2023 at 09:41:58PM +0300, Michael Tokarev wrote:
> 23.05.2023 09:12, Philippe Mathieu-Daudé wrote:
> > Enforce QOM style. Besides, using the proper QOM macros
> > slightly simplifies the code.
> 
> Applied to my trivial-patches branch (Maybe it's time to resurrect it).
> 
> Thanks,
> 
> /mjt

pci things:

Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Re: [PATCH 0/4] hw: Minor simplifications using proper QOM getter macros
Posted by Michael Tokarev 10 months, 2 weeks ago
22.06.2023 23:33, Michael S. Tsirkin wrote:
> On Thu, Jun 08, 2023 at 09:41:58PM +0300, Michael Tokarev wrote:

>> Applied to my trivial-patches branch (Maybe it's time to resurrect it).

> pci things:
> 
> Reviewed-by: Michael S. Tsirkin <mst@redhat.com>

It's been merged to master on Jun-11 already. But thank you for the review anyway! :)

/mjt