Xen tree 2014-10-30
The following changes since commit cbd5ac699173b684e678d66df3aea33df81fd89f:
virtio: link the rng backend through an alias property (2014-10-30 12:59:27 +0000)
are available in the git repository at:
git://xenbits.xen.org/people/sstabellini/qemu-dm.git xen-2014-10-30
for you to fetch changes up to d4f9e806c20607cafe7bb0d9eba14ccb160390a1:
fix off-by-one error in pci_piix3_xen_ide_unplug (2014-10-30 14:16:39 +0000)
----------------------------------------------------------------
Don Slutz (1):
xen-hvm.c: Add support for Xen access to vmport
James Harper (1):
fix off-by-one error in pci_piix3_xen_ide_unplug
hw/ide/piix.c | 4 +- include/hw/xen/xen_common.h | 15 ++++++ xen-hvm.c | 108 +++++++++++++++++++++++++++++++++++++++++-- 3 files changed, 120 insertions(+), 7 deletions(-)
[Qemu-devel] [PULL 1/2] xen-hvm.c: Add support for Xen access to vmport
From: Don Slutz <[email protected]>
This adds synchronisation of the 6 vcpu registers (only 32bits of them) that vmport.c needs between Xen and QEMU.
This is to avoid a 2nd and 3rd exchange between QEMU and Xen to fetch and put these 6 vcpu registers used by the code in vmport.c and vmmouse.c
The registers are passed in the new shared page provided by HVM_PARAM_VMPORT_REGS_PFN.
Add new array to XenIOState that allows selection of current_cpu by vcpu id.
Now pass XenIOState to handle_ioreq().
Add new routines regs_to_cpu(), regs_from_cpu(), and handle_vmport_ioreq().
--- include/hw/xen/xen_common.h | 15 ++++++ xen-hvm.c | 108 +++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 118 insertions(+), 5 deletions(-)
include/hw/xen/xen_common.h +15 -0
@@ -164,4 +164,19 @@ void destroy_hvm_domain(bool reboot);/* shutdown/destroy current domain because of an error */ void xen_shutdown_fatal_error(const char *fmt, ...) GCC_FMT_ATTR(1, 2); +#ifdef HVM_PARAM_VMPORT_REGS_PFN +static inline int xen_get_vmport_regs_pfn (XenXC xc,domid_t dom, +unsigned long *vmport_regs_pfn) +{ +return xc_get_hvm_param (xc, dom,HVM_PARAM_VMPORT_REGS_PFN , + vmport_regs_pfn); +} +#else +static inline int xen_get_vmport_regs_pfn (XenXC xc,domid_t dom, +unsigned long *vmport_regs_pfn) +{ +return -ENOSYS ; +} +#endif +#endif /* QEMU_HW_XEN_COMMON_H */
xen-hvm.c +103 -5
169 lines not on this page · raw message
Signature · 1 line
1.7.10.4
[Qemu-devel] [PULL 2/2] fix off-by-one error in pci_piix3_xen_ide_unplug
In reply to Stefano StabelliniFrom: James Harper <[email protected]>
Fix off-by-one error when unplugging disks, which would otherwise leave the last ATA disk plugged, with obvious consequences. Also rewrite loop to be more readable.
--- hw/ide/piix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
hw/ide/piix.c +2 -2
@@ -171,11 +171,11 @@ int pci_piix3_xen_ide_unplug(DeviceState *dev) {PCIIDEState *pci_ide;DriveInfo *di; -int i =0 ; +int i; pci_ide =PCI_IDE (dev); -for (; i <3 ; i++) { +for (i =0 ; i <4 ; i++) { di =drive_get_by_index (IF_IDE , i);if (di !=NULL && !di->media_cd) {BlockBackend *blk =blk_by_legacy_dinfo (di);
Signature · 1 line
1.7.10.4
Stabellini,
I also have enabled ' virtio-blk dynamic cache mode for Linux virtual machine ' for KVM virtual machine.
Linux VM kernel can change host page cache option at runtime. Is it useful for Xen? I will commit it too.
Thanks
Quan
Quoted 39 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Stefano Stabellini
Sent: Thursday, October 30, 2014 10:21 PM
To: [email protected]
Cc: [email protected]; [email protected]; Stefano Stabellini
Subject: [Xen-devel] [PULL 0/2] Xen tree 2014-10-30The following changes since commit
cbd5ac699173b684e678d66df3aea33df81fd89f:virtio: link the rng backend through an alias property (2014-10-30 12:59:27
+0000)are available in the git repository at:
git://xenbits.xen.org/people/sstabellini/qemu-dm.gitxen-2014-10-30for you to fetch changes up to
d4f9e806c20607cafe7bb0d9eba14ccb160390a1:fix off-by-one error in
pci_piix3_xen_ide_unplug(2014-10-30 14:16:39 +0000)----------------------------------------------------------------
Don Slutz (1):
xen-hvm.c: Add support for Xen access to vmportJames Harper (1):
fix off-by-one error inpci_piix3_xen_ide_unplughw/ide/piix.c | 4 +- include/hw/xen/xen_common.h | 15 ++++++ xen-hvm.c | 108 +++++++++++++++++++++++++++++++++++++++++-- 3 files changed, 120 insertions(+), 7 deletions(-)_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Hello Quan,
I guess you are referring to the host Linux kernel. Based on what information does it change the page cache setting? Which settings are supported? Can you explain a simple scenario that benefits from your improvement on virtio-blk?
Cheers,
Stefano
Quoted 46 lines · Quan
Stabellini,
I also have enabled ' virtio-blk dynamic cache mode for Linux virtual machine ' for KVM virtual machine.
Linux VM kernel can change host page cache option at runtime. Is it useful for Xen? I will commit it too.Thanks
QuanQuoted 39 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Stefano Stabellini
Sent: Thursday, October 30, 2014 10:21 PM
To: [email protected]
Cc: [email protected]; [email protected]; Stefano Stabellini
Subject: [Xen-devel] [PULL 0/2] Xen tree 2014-10-30The following changes since commit
cbd5ac699173b684e678d66df3aea33df81fd89f:virtio: link the rng backend through an alias property (2014-10-30 12:59:27
+0000)are available in the git repository at:
git://xenbits.xen.org/people/sstabellini/qemu-dm.gitxen-2014-10-30for you to fetch changes up to
d4f9e806c20607cafe7bb0d9eba14ccb160390a1:fix off-by-one error in
pci_piix3_xen_ide_unplug(2014-10-30 14:16:39 +0000)----------------------------------------------------------------
Don Slutz (1):
xen-hvm.c: Add support for Xen access to vmportJames Harper (1):
fix off-by-one error inpci_piix3_xen_ide_unplughw/ide/piix.c | 4 +- include/hw/xen/xen_common.h | 15 ++++++ xen-hvm.c | 108 +++++++++++++++++++++++++++++++++++++++++-- 3 files changed, 120 insertions(+), 7 deletions(-)_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Peter Maydell
AppliedQuoted 11 lines · Stefano Stabellini
The following changes since commit
cbd5ac699173b684e678d66df3aea33df81fd89f:virtio: link the rng backend through an alias property (2014-10-30 12:59:27 +0000)
are available in the git repository at:
git://xenbits.xen.org/people/sstabellini/qemu-dm.gitxen-2014-10-30for you to fetch changes up to
d4f9e806c20607cafe7bb0d9eba14ccb160390a1:fix off-by-one error in
pci_piix3_xen_ide_unplug(2014-10-30 14:16:39 +0000)
Applied, thanks.
-- PMM