[Qemu-devel] [PATCH] target-sh4: Fix initrd initialization for endiannes-mismatched targets

2014-10-08 Thread Guenter Roeck
If host and target endianness does not match, loding an initrd does not work, but results in a kernel log message similar to the following. ... MOUNT_ROOT_RDONLY - ... RAMDISK_FLAGS - ... ORIG_ROOT_DEV - ... LOADER_TYPE - 0100 ... INITRD_START -

Re: [Qemu-devel] NBD TLS support in QEMU

2014-10-08 Thread Wouter Verhelst
On Thu, Oct 02, 2014 at 03:50:57PM +0200, Wouter Verhelst wrote: On Thu, Oct 02, 2014 at 01:00:04PM +0200, Paolo Bonzini wrote: Il 01/10/2014 22:23, Wouter Verhelst ha scritto: Hi, On Fri, Sep 05, 2014 at 03:26:09PM +0200, Wouter Verhelst wrote: Tunneling the entire protocol inside

Re: [Qemu-devel] [PATCH 1/3] block: Ignore allocation size in underlying file

2014-10-08 Thread Eric Blake
On 08/16/2014 12:54 PM, Max Reitz wrote: When falling through to the underlying file in bdrv_co_get_block_status(), do not let the number of sectors for which information could be obtained be overwritten. Signed-off-by: Max Reitz mre...@redhat.com --- block.c | 6 -- 1 file changed,

Re: [Qemu-devel] [RFC PATCH v2 03/23] COLO: introduce an api colo_supported() to indicate COLO support

2014-10-08 Thread Wen Congyang
On 10/08/2014 11:02 PM, Eric Blake wrote: On 09/23/2014 03:23 AM, Yang Hongyang wrote: introduce an api colo_supported() to indicate COLO support, returns true if colo supported (configured with --enable-colo). Signed-off-by: Yang Hongyang yan...@cn.fujitsu.com --- +++

Re: [Qemu-devel] [PATCH v2 37/36] qdev: device_del: search for to be unplugged device in 'peripheral' container

2014-10-08 Thread Zhu Guihua
On Wed, 2014-10-08 at 10:01 +0200, Paolo Bonzini wrote: Il 08/10/2014 05:49, Zhu Guihua ha scritto: when device_add pc-dimm, only 'memdev' property is necessary, but the 'id' property is optional. So I execute the command as followings: object_add memory-backend-ram,id=ram0,size=128M

Re: [Qemu-devel] [PATCH V4 5/8] pc: Update rtc_cmos in pc_cpu_plug

2014-10-08 Thread Gu Zheng
On 10/08/2014 08:25 PM, Igor Mammedov wrote: On Wed, 8 Oct 2014 09:12:11 +0800 Gu Zheng guz.f...@cn.fujitsu.com wrote: Hi Igor, On 10/07/2014 09:01 PM, Igor Mammedov wrote: On Mon, 29 Sep 2014 18:52:34 +0800 Gu Zheng guz.f...@cn.fujitsu.com wrote: Update rtc_cmos in pc_cpu_plug

Re: [Qemu-devel] [Xen-devel] [PATCH 2/2] xen:i386:pc_piix: create isa bridge specific to IGD passthrough

2014-10-08 Thread Chen, Tiejun
On 2014/10/7 15:27, Michael S. Tsirkin wrote: On Sun, Sep 28, 2014 at 01:38:43PM +0800, Chen, Tiejun wrote: **errp) { uint32_t value = 0; XenHostPCIDevice hdev; int r = 0, num; r = xen_host_pci_device_get(hdev, 0, 0, 0x02, 0); if (!r) { value = hdev.device_id;

Re: [Qemu-devel] [PATCH v7 2/2] dump: Turn some functions to void to make code cleaner

2014-10-08 Thread zhanghailiang
On 2014/10/8 22:57, Eric Blake wrote: On 09/30/2014 03:20 AM, zhanghailiang wrote: Functions shouldn't return an error code and an Error object at the same time. Turn all these functions that returning Error object to void. We also judge if a function success or fail by reference to the

[Qemu-devel] [PATCH] block/migration: Disable cache invalidate for incoming migration

2014-10-08 Thread Alexey Kardashevskiy
When migrated using libvirt with --copy-storage-all, at the end of migration there is race between NBD mirroring task trying to do flush and migration completion, both end up invalidating cache. Since qcow2 driver does not handle this situation very well, random crashes happen. This disables the

Re: [Qemu-devel] [PATCH v5 08/11] qcow2: Rebuild refcount structure during check

2014-10-08 Thread Eric Blake
On 08/29/2014 03:41 PM, Max Reitz wrote: The previous commit introduced the rebuild variable to qcow2's implementation of the image consistency check. Now make use of this by adding a function which creates a completely new refcount structure based solely on the in-memory information gathered

Re: [Qemu-devel] [PATCH v2 1/2] raw-posix: Fix raw_co_get_block_status() after EOF

2014-10-08 Thread Eric Blake
On 09/22/2014 09:36 AM, Max Reitz wrote: As its comment states, raw_co_get_block_status() should unconditionally return 0 and set *pnum to 0 for after EOF. An assertion after lseek(..., SEEK_HOLE) tried to catch this case by asserting that errno != -ENXIO (which would indicate a position

Re: [Qemu-devel] [PATCH v2 2/2] raw-posix: raw_co_get_block_status() return value

2014-10-08 Thread Eric Blake
On 09/22/2014 09:36 AM, Max Reitz wrote: Instead of generating the full return value thrice in try_fiemap(), try_seek_hole() and as a fall-back in raw_co_get_block_status() itself, generate the value only in raw_co_get_block_status(). Suggested-by: Kevin Wolf kw...@redhat.com Signed-off-by:

Re: [Qemu-devel] [PATCH 2/3] qemu-io: Respect early image end for map

2014-10-08 Thread Eric Blake
On 08/16/2014 12:54 PM, Max Reitz wrote: bdrv_is_allocated() may report zero clusters which most probably means the image (file) is shorter than expected. Respect this case in order to avoid an infinite loop. Signed-off-by: Max Reitz mre...@redhat.com --- qemu-io-cmds.c | 5 - 1 file

Re: [Qemu-devel] [PATCH 3/3] iotests: Add test for map commands

2014-10-08 Thread Eric Blake
On 08/16/2014 12:54 PM, Max Reitz wrote: Add a test for qemu-img map and qemu-io -c map on truncated files. Signed-off-by: Max Reitz mre...@redhat.com --- tests/qemu-iotests/102 | 64 ++ tests/qemu-iotests/102.out | 11

Re: [Qemu-devel] [PATCH 1/2] vmstate: Allow dynamic allocation for VBUFFER during migration

2014-10-08 Thread Alexey Kardashevskiy
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/03/2014 09:42 AM, Alexey Kardashevskiy wrote: On 10/02/2014 07:56 PM, Alexey Kardashevskiy wrote: This extends use of VMS_ALLOC flag from arrays to VBUFFER as well. This defines VMSTATE_VBUFFER_ALLOC_UINT32 which makes use of VMS_ALLOC

Re: [Qemu-devel] [Xen-devel] [PATCH 2/2] xen:i386:pc_piix: create isa bridge specific to IGD passthrough

2014-10-08 Thread Chen, Tiejun
On 2014/10/7 15:26, Michael S. Tsirkin wrote: On Tue, Sep 30, 2014 at 10:43:09AM +0800, Chen, Tiejun wrote: On 2014/9/29 18:01, Michael S. Tsirkin wrote: On Sun, Sep 28, 2014 at 10:59:05AM +0800, Chen, Tiejun wrote: On 2014/9/3 9:40, Kay, Allen M wrote: -Original Message- From:

<    1   2