[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH V4 0/6] firmware changes as part of QEMU/Xen merge.


  • To: <anthony.perard@xxxxxxxxxx>, Xen Devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: Keir Fraser <keir@xxxxxxx>
  • Date: Fri, 29 Oct 2010 18:54:04 +0100
  • Cc: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
  • Delivery-date: Fri, 29 Oct 2010 11:00:19 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:user-agent:date:subject:from:to:cc:message-id:thread-topic :thread-index:in-reply-to:mime-version:content-type :content-transfer-encoding; b=u7E5rpeJJ0xuxKM4kS+BtXOo276z40+rypvPFCU6MMb/iZ8uzZaz+Fxwvmrxrfa5r+ PguvWILJKg7CyqEU8o5+YxKgzXB718fiKw49QnsEeU420wexUwhXFW8AkKGQv5Gmqp+l eCiXSpOQeBZ/DZc8i9WZKEYECeVwXCFX+214w=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: Act3kkZi0/ZKfR2eRky65Erv6HEumA==
  • Thread-topic: [Xen-devel] [PATCH V4 0/6] firmware changes as part of QEMU/Xen merge.

I applied patches 2/6 and 3/6, and also the Xen component of 1/6. This is as
of xen-unstable changeset 22339.

Note that I made substantial changes to 2/6 and 3/6 -- your versions did
complex compound operations to the per-domain io-handler list with no locks
held. Not good. I replaced unregister_handler with relocate_handler which
only needs to change the address field of a handler -- much safer with no
locks held! We could add more locking, but doesn't really some worth it just
now.

So take a look at and test what I checked in. Everything else I don't need
to review and can go in as soon as at least Ian Jackson is happy with it.

 Thanks,
 Keir

On 29/10/2010 16:39, "anthony.perard@xxxxxxxxxx" <anthony.perard@xxxxxxxxxx>
wrote:

> From: Anthony PERARD <anthony.perard@xxxxxxxxxx>
> 
> This patches are for Xen-unstable and Qemu-DM.
> 
> With the integration of Xen into QEMU, we would like to minimise the change
> and use the ACPI implementation of QEMU. So there are some change to make on
> the firmware to match the QEMU's BIOS. Some IO Ports are different and the
> sleep state values are different.
> 
> Changhe v3->v4:
>   - Rename HVM_PARAM_ACPI_NEW_IOPORT to HVM_PARAM_ACPI_IOPORTS_LOCATION
>   - Better comment for HVM_PARAM_ACPI_IOPORTS_LOCATION.
> 
> Change v2->v3:
> Xen will register the old ioport by default and switch to the new ioport if
> the
> HVM_PARAM_ACPI_NEW_IOPORT is set. So, this series come with a new function,
> unregister_io_handler, and a new HVM_PARAM.
> 
> Change v1->v2:
> This time, both old and new ioport are handled.
> In QEMU-Xen, the choice between one or the other is made when a saved state is
> restored.
> In Xen, both ioports are registered.
> 
> Anthony PERARD (5):
>   firmware, Change ACPI IO addresses and values to match QEMU BIOS.
>   xen, Introduce unregister_io_handler
>   xen, Introduce pmtimer_change_ioport and
>     HVM_PARAM_ACPI_IOPORTS_LOCATION.
>   firmware, Set HVM_PARAM_ACPI_IOPORTS_LOCATION
>   libxc, save/restore, Save the HVM_PARAM_ACPI_IOPORTS_LOCATION
> 
>  tools/firmware/hvmloader/acpi/dsdt.asl |   12 ++++++------
>  tools/firmware/hvmloader/hvmloader.c   |   11 +++++++++++
>  tools/libxc/xc_domain_restore.c        |   20 ++++++++++++++++++++
>  tools/libxc/xc_domain_save.c           |   10 ++++++++++
>  tools/libxc/xg_save_restore.h          |    1 +
>  xen/arch/x86/hvm/hvm.c                 |    9 +++++++++
>  xen/arch/x86/hvm/intercept.c           |   26 ++++++++++++++++++++++++++
>  xen/arch/x86/hvm/pmtimer.c             |   26 ++++++++++++++++++++++++--
>  xen/include/asm-x86/hvm/io.h           |    8 ++++++++
>  xen/include/asm-x86/hvm/vpt.h          |    1 +
>  xen/include/public/hvm/ioreq.h         |   16 +++++++++++++---
>  xen/include/public/hvm/params.h        |   12 +++++++++++-
>  12 files changed, 140 insertions(+), 12 deletions(-)
> 
> 
> QEMU-Xen change:
> 
> Anthony PERARD (1):
>   piix4acpi: change in ACPI to match the change in the BIOS.
> 
>  hw/piix4acpi.c |   99 ++++++++++++++++++++++++++++++++++++++++++++++---------
>  1 files changed, 82 insertions(+), 17 deletions(-)



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.