All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
To: Eduardo Habkost <ehabkost@redhat.com>, qemu-devel@nongnu.org
Cc: Igor Mammedov <imammedo@redhat.com>,
	"Michael S. Tsirkin" <mst@redhat.com>,
	Marcel Apfelbaum <marcel.a@redhat.com>
Subject: Re: [Qemu-devel] [PATCH 00/16] pc: Eliminate struct PcGuestInfo
Date: Mon, 7 Dec 2015 20:57:03 +0200	[thread overview]
Message-ID: <5665D67F.2000001@gmail.com> (raw)
In-Reply-To: <1449020831-8414-1-git-send-email-ehabkost@redhat.com>

On 12/02/2015 03:46 AM, Eduardo Habkost wrote:
> This moves all data from PcGuestInfo to either PCMachineState or
> PCMachineClass.
>
> This series depends on other two series:
> * [PATCH v3 0/6] pc: Initialization and compat function cleanup
> * [PATCH V3 0/3]  hw/pcie: Multi-root support for Q35
>
> For reference, there's a git tree containing this series plus all
> the dependencies, at:
>    git://github.com/ehabkost/qemu-hacks.git work/pcguestinfo-eliminate
>
> Eduardo Habkost (16):
>    pc: Move PcGuestInfo declaration to top of file
>    pc: Eliminate struct PcGuestInfoState
>    pc: Remove guest_info parameter from pc_memory_init()
>    acpi: Make acpi_setup() get PCMachineState as argument
>    acpi: Remove unused build_facs() PcGuestInfo paramter
>    acpi: Save PCMachineState on AcpiBuildState
>    acpi: Make acpi_build() get PCMachineState as argument
>    acpi: Make build_srat() get PCMachineState as argument
>    acpi: Remove ram size fields fron PcGuestInfo
>    pc: Move PcGuestInfo.fw_cfg field to PCMachineState
>    pc: Simplify signature of xen_load_linux()
>    pc: Remove PcGuestInfo.isapc_ram_fw field
>    q35: Remove MCHPCIState.guest_info field
>    acpi: Use PCMachineClass fields directly
>    pc: Move PcGuestInfo.apic_xrupt_override field to PCMachineState
>    pc: Move APIC and NUMA data from PcGuestInfo to PCMachineState

Hi,

I mainly agree with the removal of PcGuestInfo , I commented on some patches.

I do have a minor reservation, we kind of loose some information about the fields.
Until now it was pretty clear that the fields were related to guest because
they were part of PcGuestInfo. Now this information is lost and the fields
appear as yet other machine attributes.

I suppose this can be addressed by:
- a prefix for guest fields (e.g numa_nodes-> guest_numa_nodes),
- a comment in the class /* guest fields */,
- keeping the fields in PcGuestInfo struct but make the machine field short: guest so we can call machine->guest.numa_nodes
- or not be addressed at all :)


Thanks,
Marcel



>
>   hw/i386/acpi-build.c      | 75 ++++++++++++++++++++++++-----------------------
>   hw/i386/acpi-build.h      |  2 +-
>   hw/i386/pc.c              | 71 ++++++++++++++++++--------------------------
>   hw/i386/pc_piix.c         | 14 ++-------
>   hw/i386/pc_q35.c          | 15 ++--------
>   include/hw/i386/pc.h      | 30 +++++++------------
>   include/hw/pci-host/q35.h |  1 -
>   7 files changed, 82 insertions(+), 126 deletions(-)
>

  parent reply	other threads:[~2015-12-07 18:57 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-02  1:46 [Qemu-devel] [PATCH 00/16] pc: Eliminate struct PcGuestInfo Eduardo Habkost
2015-12-02  1:46 ` [Qemu-devel] [PATCH 01/16] pc: Move PcGuestInfo declaration to top of file Eduardo Habkost
2015-12-02  1:46 ` [Qemu-devel] [PATCH 02/16] pc: Eliminate struct PcGuestInfoState Eduardo Habkost
2015-12-07 15:19   ` Marcel Apfelbaum
2015-12-02  1:46 ` [Qemu-devel] [PATCH 03/16] pc: Remove guest_info parameter from pc_memory_init() Eduardo Habkost
2015-12-02  1:46 ` [Qemu-devel] [PATCH 04/16] acpi: Make acpi_setup() get PCMachineState as argument Eduardo Habkost
2015-12-07 15:24   ` Marcel Apfelbaum
2015-12-08 17:40     ` Eduardo Habkost
2015-12-02  1:47 ` [Qemu-devel] [PATCH 05/16] acpi: Remove unused build_facs() PcGuestInfo paramter Eduardo Habkost
2015-12-07 15:25   ` Marcel Apfelbaum
2015-12-02  1:47 ` [Qemu-devel] [PATCH 06/16] acpi: Save PCMachineState on AcpiBuildState Eduardo Habkost
2015-12-07 15:39   ` Marcel Apfelbaum
2015-12-08 17:59     ` Eduardo Habkost
2015-12-08 18:44       ` Marcel Apfelbaum
2015-12-09 19:37         ` Igor Mammedov
2015-12-11 14:12           ` Eduardo Habkost
2015-12-02  1:47 ` [Qemu-devel] [PATCH 07/16] acpi: Make acpi_build() get PCMachineState as argument Eduardo Habkost
2015-12-02  1:47 ` [Qemu-devel] [PATCH 08/16] acpi: Make build_srat() " Eduardo Habkost
2015-12-02  1:47 ` [Qemu-devel] [PATCH 09/16] acpi: Remove ram size fields fron PcGuestInfo Eduardo Habkost
2015-12-02  1:47 ` [Qemu-devel] [PATCH 10/16] pc: Move PcGuestInfo.fw_cfg field to PCMachineState Eduardo Habkost
2015-12-02  1:47 ` [Qemu-devel] [PATCH 11/16] pc: Simplify signature of xen_load_linux() Eduardo Habkost
2015-12-11 11:40   ` Stefano Stabellini
2015-12-02  1:47 ` [Qemu-devel] [PATCH 12/16] pc: Remove PcGuestInfo.isapc_ram_fw field Eduardo Habkost
2015-12-02  1:47 ` [Qemu-devel] [PATCH 13/16] q35: Remove MCHPCIState.guest_info field Eduardo Habkost
2015-12-02  1:47 ` [Qemu-devel] [PATCH 14/16] acpi: Use PCMachineClass fields directly Eduardo Habkost
2015-12-02  1:47 ` [Qemu-devel] [PATCH 15/16] pc: Move PcGuestInfo.apic_xrupt_override field to PCMachineState Eduardo Habkost
2015-12-02  1:47 ` [Qemu-devel] [PATCH 16/16] pc: Move APIC and NUMA data from PcGuestInfo " Eduardo Habkost
2015-12-07 18:57 ` Marcel Apfelbaum [this message]
2015-12-08 17:53   ` [Qemu-devel] [PATCH 00/16] pc: Eliminate struct PcGuestInfo Eduardo Habkost
2015-12-10 11:27     ` Marcel Apfelbaum
2015-12-10 17:45       ` Eduardo Habkost

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5665D67F.2000001@gmail.com \
    --to=marcel.apfelbaum@gmail.com \
    --cc=ehabkost@redhat.com \
    --cc=imammedo@redhat.com \
    --cc=marcel.a@redhat.com \
    --cc=marcel@redhat.com \
    --cc=mst@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.