Re: [Qemu-devel] vm live storage migration approach.

2015-01-30 Thread Stefan Hajnoczi
On Fri, Jan 30, 2015 at 8:13 PM, Yaodong Yang wrote: > An follow up questions. > > Suppose I have a running VM with two virtual disks, I would like to migrate > the vm from host A to host B. Both host A and host B have their own isolated > storage devices. Is there anyway to migrate the vm's memor

Re: [Qemu-devel] vm live storage migration approach.

2015-01-30 Thread Yaodong Yang
Thank you Stefan! Now I understand the workflow. -Yaodong On Fri, Jan 30, 2015 at 2:37 PM, Stefan Hajnoczi wrote: > On Fri, Jan 30, 2015 at 8:13 PM, Yaodong Yang > wrote: > > An follow up questions. > > > > Suppose I have a running VM with two virtual disks, I would like to > migrate > > the v

Re: [Qemu-devel] [PATCH RESEND 03/50] hw/block/fdc: Implement tray status

2015-01-30 Thread John Snow
On 01/27/2015 02:45 PM, Max Reitz wrote: The tray of an FDD is open iff there is no medium inserted (there are only two states for an FDD: "medium inserted" or "no medium inserted"). This results in the tray being reported as open if qemu has been started with the default floppy drive, which b

Re: [Qemu-devel] [PATCH v3 4/4] virtio-blk: introduce multiread

2015-01-30 Thread Peter Lieven
Am 30.01.2015 um 18:16 schrieb Max Reitz: > On 2015-01-30 at 09:33, Peter Lieven wrote: >> this patch finally introduces multiread support to virtio-blk. While >> multiwrite support was there for a long time, read support was missing. >> >> The complete merge logic is moved into virtio-blk.c which

[Qemu-devel] [PATCH 2/6] vmport_rpc: Add the object vmport_rpc

2015-01-30 Thread Don Slutz
This is the 1st part of "Add limited support of VMware's hyper-call rpc". This patch uses existing infrastructure used by vmmouse.c (provided by vmport.c) to handle the VMware backdoor command 30. One of the better on-line references is: https://sites.google.com/site/chitchatvmback/backdoor Mor

[Qemu-devel] [PATCH 3/6] vmport_rpc: Add limited support of VMware's hyper-call rpc

2015-01-30 Thread Don Slutz
The support included is enough to allow VMware tools to install in a guest and provide guestinfo support. guestinfo support is provided by what is known as VMware RPC support. If the guest is running VMware tools, then the "build version" of the tools is also available via the property build-numb

[Qemu-devel] [PATCH 5/6] vmport: Add VMware all ring hack

2015-01-30 Thread Don Slutz
This is done by adding a new machine property vmware-port-ring3 that needs to be enabled to have any effect. It only effects accel=tcg mode. It is needed if you want to use VMware tools in accel=tcg mode. Signed-off-by: Don Slutz (cherry picked from commit 6d99c91fc9ae27b476e89a8cc880b4a46e2375

[Qemu-devel] [PATCH 0/6] Add limited support of VMware's hyper-call rpc

2015-01-30 Thread Don Slutz
The support included is enough to allow VMware tools to install in a guest and provide guestinfo support. guestinfo support is provided by what is known as VMware RPC support. One of the better on-line references is: https://sites.google.com/site/chitchatvmback/backdoor As a place to get more a

[Qemu-devel] [PATCH 1/6] vmport.c: Fix vmport_cmd_ram_size

2015-01-30 Thread Don Slutz
Based on https://sites.google.com/site/chitchatvmback/backdoor and testing on ESXi, this should be in MB not bytes. Signed-off-by: Don Slutz --- hw/misc/vmport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/misc/vmport.c b/hw/misc/vmport.c index 7fcc00d..6b350ce 10064

[Qemu-devel] [PATCH 4/6] vmport_rpc: Add QMP access to vmport_rpc object.

2015-01-30 Thread Don Slutz
This adds two new inject commands: inject-vmport-reboot inject-vmport-halt And three guest info commands: vmport-guestinfo-set vmport-guestinfo-get query-vmport-guestinfo More details in qmp-commands.hx Signed-off-by: Don Slutz --- hw/misc/vmport_rpc.c | 275 +

[Qemu-devel] [PATCH 6/6] MAINTAINERS: add VMware port

2015-01-30 Thread Don Slutz
Signed-off-by: Don Slutz --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index fd335a4..b60ee6a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -741,6 +741,13 @@ S: Maintained F: hw/net/vmxnet* F: hw/scsi/vmw_pvscsi* +VMware port +M: Don Slut

[Qemu-devel] value of VIRTQUEUE_MAX_SIZE

2015-01-30 Thread Peter Lieven
Hi, Just wondering if VIRTQUEUE_MAX_SIZE in include/hw/virtio/virtio.h should not be equal to IOV_MAX instead of the hardcoded 1024? Thanks, Peter

Re: [Qemu-devel] [PATCH v3 4/4] virtio-blk: introduce multiread

2015-01-30 Thread Kevin Wolf
Am 30.01.2015 um 22:05 hat Peter Lieven geschrieben: > Am 30.01.2015 um 18:16 schrieb Max Reitz: > > On 2015-01-30 at 09:33, Peter Lieven wrote: > >> this patch finally introduces multiread support to virtio-blk. While > >> multiwrite support was there for a long time, read support was missing. > >

Re: [Qemu-devel] [PATCH v3 4/4] virtio-blk: introduce multiread

2015-01-30 Thread Max Reitz
On 2015-01-30 at 16:05, Peter Lieven wrote: Am 30.01.2015 um 18:16 schrieb Max Reitz: On 2015-01-30 at 09:33, Peter Lieven wrote: this patch finally introduces multiread support to virtio-blk. While multiwrite support was there for a long time, read support was missing. The complete merge logi

Re: [Qemu-devel] QEMU segfault: Booting an overlay with backing_file over NBD: nbd.c:nbd_receive_request():L756: read failed

2015-01-30 Thread Kashyap Chamarthy
On Fri, Jan 30, 2015 at 02:32:25PM -0500, Max Reitz wrote: > On 2015-01-30 at 13:41, Kashyap Chamarthy wrote: > >On Fri, Jan 30, 2015 at 06:15:21PM +0100, Kevin Wolf wrote: > >>Am 29.01.2015 um 17:25 hat Kashyap Chamarthy geschrieben: [. . .] > >>Copying Stefan because he's the master of AIO cont

Re: [Qemu-devel] [PATCH 4/6] vmport_rpc: Add QMP access to vmport_rpc object.

2015-01-30 Thread Eric Blake
On 01/30/2015 02:06 PM, Don Slutz wrote: > This adds two new inject commands: > > inject-vmport-reboot > inject-vmport-halt > > And three guest info commands: > > vmport-guestinfo-set > vmport-guestinfo-get > query-vmport-guestinfo > > More details in qmp-commands.hx > > Signed-off-by: Don Slu

[Qemu-devel] [PATCH] vfio-pci: unparent BAR subregions

2015-01-30 Thread Alex Williamson
Commit d8d95814609e replaced a number of memory_region_destroy() calls with object_unparent() calls. The logic appears to be that subregions need to be unparented, but the base region is destroyed with the device object. Doing hotplug testing with vfio-pci I occasionally get a segfault from objec

Re: [Qemu-devel] [RFC PATCH v1 10/13] cpus, spapr: reclaim allocated vCPU objects

2015-01-30 Thread David Gibson
On Fri, Jan 30, 2015 at 01:53:47PM +0530, Bharata B Rao wrote: > On Thu, Jan 29, 2015 at 12:48:39PM +1100, David Gibson wrote: > > On Thu, Jan 08, 2015 at 11:40:17AM +0530, Bharata B Rao wrote: > > > From: Gu Zheng > > > > This needs a commit message, it's not at all clear from the 1-line > > de

Re: [Qemu-devel] [Xen-devel] [RFC][PATCH 1/1] libxl: add one machine property to support IGD GFX passthrough

2015-01-30 Thread Xu, Quan
> -Original Message- > From: xen-devel-boun...@lists.xen.org > [mailto:xen-devel-boun...@lists.xen.org] On Behalf Of Wei Liu > Sent: Friday, January 30, 2015 8:26 PM > To: Chen, Tiejun > Cc: Wei Liu; ian.campb...@citrix.com; m...@redhat.com; Ian Jackson; > qemu-devel@nongnu.org; xen-de...

[Qemu-devel] [PATCH 1/2] xen-pt: fix Negative array index read

2015-01-30 Thread arei.gonglei
From: Gonglei Coverity spot: Function xen_pt_bar_offset_to_index() may returns a negative number (-1) value index, which as an index to array d->io_regions. Let's directly and simply pass index as an argument to xen_pt_bar_reg_parse(). Signed-off-by: Gonglei --- hw/xen/xen_pt_config_init.c |

[Qemu-devel] [PATCH 2/2] xen-pt: fix Out-of-bounds read

2015-01-30 Thread arei.gonglei
From: Gonglei The array length of s->real_device.io_regions[] is "PCI_NUM_REGIONS - 1". Add a check, just make Coverity happy. Signed-off-by: Gonglei --- hw/xen/xen_pt_config_init.c | 5 + 1 file changed, 5 insertions(+) diff --git a/hw/xen/xen_pt_config_init.c b/hw/xen/xen_pt_config_init

[Qemu-devel] [PATCH 0/2] xen_pt: fix two Coverity defects

2015-01-30 Thread arei.gonglei
From: Gonglei Gonglei (2): xen-pt: fix Negative array index read xen-pt: fix Out-of-bounds read hw/xen/xen_pt_config_init.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) -- 1.7.12.4

<    1   2   3