[Qemu-devel] [PATCH v3] virtio-pci: fix migration for pci bus master

2014-10-19 Thread Michael S. Tsirkin
Current support for bus master (clearing OK bit) together with the need to support guests which do not enable PCI bus mastering, leads to extra state in VIRTIO_PCI_FLAG_BUS_MASTER_BUG bit, which isn't robust in case of cross-version migration for the case when guests use the device before setting D

Re: [Qemu-devel] [PATCH 2/2] iotests: Add test for qcow2 L1 table update

2014-10-19 Thread Peter Lieven
On 16.10.2014 15:25, Max Reitz wrote: Updating the L1 table should not result in random data being written. This adds a test for that. Signed-off-by: Max Reitz --- tests/qemu-iotests/107 | 61 ++ tests/qemu-iotests/107.out | 10 tests

Re: [Qemu-devel] [PATCH] fix the memory leak for share hugepage

2014-10-19 Thread Wen Congyang
On 10/20/2014 02:17 PM, Linhaifeng wrote: > > > On 2014/10/20 13:32, Wen Congyang wrote: >> On 10/20/2014 12:48 PM, Linhaifeng wrote: >>> >>> >>> On 2014/10/20 10:12, Wen Congyang wrote: On 10/18/2014 11:20 AM, Linhaifeng wrote: > > > On 2014/10/17 21:26, Daniel P. Berrange wrote

Re: [Qemu-devel] [PATCH 1/2] qcow2: Do not overflow when writing an L1 sector

2014-10-19 Thread Peter Lieven
On 16.10.2014 15:25, Max Reitz wrote: While writing an L1 table sector, qcow2_write_l1_entry() copies the respective range from s->l1_table to the local "buf" array. The size of s->l1_table does not have to be a multiple of L1_ENTRIES_PER_SECTOR; thus, limit the index which is used for copying al

Re: [Qemu-devel] [PATCH] fix the memory leak for share hugepage

2014-10-19 Thread Linhaifeng
On 2014/10/20 13:32, Wen Congyang wrote: > On 10/20/2014 12:48 PM, Linhaifeng wrote: >> >> >> On 2014/10/20 10:12, Wen Congyang wrote: >>> On 10/18/2014 11:20 AM, Linhaifeng wrote: On 2014/10/17 21:26, Daniel P. Berrange wrote: > On Fri, Oct 17, 2014 at 04:57:27PM +0800, Linhai

[Qemu-devel] [PATCH] block: add a knob to disable multiwrite_merge

2014-10-19 Thread Peter Lieven
the block layer silently merges write requests since commit 40b4f539. This patch adds a knob to disable this feature as there has been some discussion lately if multiwrite is a good idea at all and as it falsifies benchmarks. Signed-off-by: Peter Lieven --- block.c |4

Re: [Qemu-devel] [PATCH 1/2] i386: Add a Virtual Machine Generation ID device

2014-10-19 Thread Gal Hammer
On 19/10/2014 18:14, Michael S. Tsirkin wrote: On Sun, Oct 19, 2014 at 04:43:07PM +0300, Gal Hammer wrote: Based on Microsoft's sepecifications (paper can be dowloaded from http://go.microsoft.com/fwlink/?LinkId=260709), add a device description to the SSDT ACPI table and its implementation. Th

Re: [Qemu-devel] [PATCH] fix the memory leak for share hugepage

2014-10-19 Thread Wen Congyang
On 10/20/2014 12:48 PM, Linhaifeng wrote: > > > On 2014/10/20 10:12, Wen Congyang wrote: >> On 10/18/2014 11:20 AM, Linhaifeng wrote: >>> >>> >>> On 2014/10/17 21:26, Daniel P. Berrange wrote: On Fri, Oct 17, 2014 at 04:57:27PM +0800, Linhaifeng wrote: > > > On 2014/10/17 16:33,

Re: [Qemu-devel] [PATCH] fix the memory leak for share hugepage

2014-10-19 Thread Linhaifeng
On 2014/10/20 10:12, Wen Congyang wrote: > On 10/18/2014 11:20 AM, Linhaifeng wrote: >> >> >> On 2014/10/17 21:26, Daniel P. Berrange wrote: >>> On Fri, Oct 17, 2014 at 04:57:27PM +0800, Linhaifeng wrote: On 2014/10/17 16:33, Daniel P. Berrange wrote: > On Fri, Oct 17, 2014 at

Re: [Qemu-devel] [PATCH] fix the memory leak for share hugepage

2014-10-19 Thread Wen Congyang
On 10/18/2014 11:20 AM, Linhaifeng wrote: > > > On 2014/10/17 21:26, Daniel P. Berrange wrote: >> On Fri, Oct 17, 2014 at 04:57:27PM +0800, Linhaifeng wrote: >>> >>> >>> On 2014/10/17 16:33, Daniel P. Berrange wrote: On Fri, Oct 17, 2014 at 04:27:17PM +0800, haifeng@huawei.com wrote: >>>

Re: [Qemu-devel] [PATCH v4 2/3] monitor: add del completion for peripheral device

2014-10-19 Thread Zhu Guihua
On Sun, 2014-10-19 at 14:37 +0300, Marcel Apfelbaum wrote: > On Fri, 2014-10-17 at 17:35 +0800, Zhu Guihua wrote: > > Add peripheral_device_del_completion() to let peripheral device del > > completion > > be possible. > > > > Signed-off-by: Zhu Guihua > > --- > > monitor.c | 24

Re: [Qemu-devel] [PATCH qom v4 00/13] GPIO/IRQ QOMification: Phase 2 - Getting rid of SYSBUS IRQs

2014-10-19 Thread Peter Crosthwaite
On Sat, Oct 18, 2014 at 2:24 AM, Paolo Bonzini wrote: > These are the QOM IRQ patches from Peter Crosthwaite. I and Alex > made the small changes I requested, so here they are. > Sorry for the list inactivity. I am back in the office as of today. Regards, Peter > We tested them with v3 of the

Re: [Qemu-devel] [Consult] microblaze: About running upstream main branch qemu

2014-10-19 Thread Chen Gang
OK, thanks, I shall try it within 2 days. Send from Lenovo A788t. Guenter Roeck wrote: >On 10/19/2014 06:58 AM, Chen Gang wrote: >> >> On 10/19/14 21:38, Max Filippov wrote: >>> On Sun, Oct 19, 2014 at 5:37 PM, Chen Gang wrote: - running: ./arm-softmmu/qemu-system-arm

Re: [Qemu-devel] [PATCH 1/2] i386: Add a Virtual Machine Generation ID device

2014-10-19 Thread Michael S. Tsirkin
On Sun, Oct 19, 2014 at 04:43:07PM +0300, Gal Hammer wrote: > Based on Microsoft's sepecifications (paper can be dowloaded from > http://go.microsoft.com/fwlink/?LinkId=260709), add a device > description to the SSDT ACPI table and its implementation. > > The GUID is set using a global "vmgenid.uu

Re: [Qemu-devel] [Consult] microblaze: About running upstream main branch qemu

2014-10-19 Thread Guenter Roeck
On 10/19/2014 06:58 AM, Chen Gang wrote: On 10/19/14 21:38, Max Filippov wrote: On Sun, Oct 19, 2014 at 5:37 PM, Chen Gang wrote: - running: ./arm-softmmu/qemu-system-arm -M arm-generic-fdt -nographic -smp 2 -machine linux=on -serial mon:stdio -dtb ../linux-xlnx/system.dtb \

Re: [Qemu-devel] [Consult] microblaze: About running upstream main branch qemu

2014-10-19 Thread Chen Gang
On 10/19/14 21:38, Max Filippov wrote: > On Sun, Oct 19, 2014 at 5:37 PM, Chen Gang wrote: >>- running: >> >> ./arm-softmmu/qemu-system-arm -M arm-generic-fdt -nographic -smp 2 >> -machine linux=on -serial mon:stdio -dtb ../linux-xlnx/system.dtb \ >>-kernel ../linux-xlnx/arch/mi

[Qemu-devel] [PATCH 2/2] tests: update acpi tables after adding the vmgenid device

2014-10-19 Thread Gal Hammer
--- tests/acpi-test-data/pc/DSDT | Bin 2807 -> 2820 bytes tests/acpi-test-data/pc/SSDT | Bin 3065 -> 3239 bytes tests/acpi-test-data/q35/DSDT | Bin 7397 -> 7410 bytes tests/acpi-test-data/q35/SSDT | Bin 1346 -> 1520 bytes 4 files changed, 0 insertions(+), 0 deletions(-) diff --git a/tests/a

[Qemu-devel] [PATCH 1/2] i386: Add a Virtual Machine Generation ID device

2014-10-19 Thread Gal Hammer
Based on Microsoft's sepecifications (paper can be dowloaded from http://go.microsoft.com/fwlink/?LinkId=260709), add a device description to the SSDT ACPI table and its implementation. The GUID is set using a global "vmgenid.uuid" parameter. Signed-off-by: Gal Hammer --- default-configs/i386-

[Qemu-devel] [PATCH V6 0/2] Virtual Machine Generation ID

2014-10-19 Thread Gal Hammer
Hi, A two parts patch to add a QEmu support for Microsoft's Virtual Machine Generation ID device. The first one is the ACPI tables changes and the actual device and the second patch updates the tests' ACPI tables. Your comment are welcomed. Thanks, Gal. V6 - Move the device's description

Re: [Qemu-devel] [Consult] microblaze: About running upstream main branch qemu

2014-10-19 Thread Max Filippov
On Sun, Oct 19, 2014 at 5:37 PM, Chen Gang wrote: >- running: > > ./arm-softmmu/qemu-system-arm -M arm-generic-fdt -nographic -smp 2 > -machine linux=on -serial mon:stdio -dtb ../linux-xlnx/system.dtb \ >-kernel ../linux-xlnx/arch/microblaze/boot/linux.bin -initrd > ../microblaz

[Qemu-devel] [Consult] microblaze: About running upstream main branch qemu

2014-10-19 Thread Chen Gang
Hello microblaze maintainers: I tried to run upstream qemu for microblaze, but failed. It seems only special qemu branch can run it. And after try Xilinx qemu branch, I got "segment fault" which is related with "-dtb". So I want to consult: - Can our main upstream qemu (not other branches) run

[Qemu-devel] [PATCH] target-xtensa: fix build for cores w/o windowed registers

2014-10-19 Thread Max Filippov
Cores without windowed registers don't have window overflow/underflow vectors. Move these vectors to a separate group defined conditionally. Signed-off-by: Max Filippov --- target-xtensa/overlay_tool.h | 31 +++ 1 file changed, 19 insertions(+), 12 deletions(-) diff

[Qemu-devel] [PATCH] tests: fix acpi tables regeneration script

2014-10-19 Thread Marcel Apfelbaum
Commit: 501f28ca9db08e84819b26314525b6369e7704dd tests: rename acpi-test to bios-tables-test modified acpi-test file from acpi-test.c to bios-tables-test.c. However, the tables regeneration script was not modified accordingly. Fixed the test name also in rebuild-expected-aml.sh script. Signe

Re: [Qemu-devel] [PATCH v4 2/3] monitor: add del completion for peripheral device

2014-10-19 Thread Marcel Apfelbaum
On Fri, 2014-10-17 at 17:35 +0800, Zhu Guihua wrote: > Add peripheral_device_del_completion() to let peripheral device del completion > be possible. > > Signed-off-by: Zhu Guihua > --- > monitor.c | 24 > 1 file changed, 24 insertions(+) > > diff --git a/monitor.c b/mon

[Qemu-devel] [PATCH] target-xtensa: add core importing script

2014-10-19 Thread Max Filippov
This script copies configuration and gdb information from the xtensa configuration overlay archive and registers new xtensa core. Signed-off-by: Max Filippov --- target-xtensa/import_core.sh | 53 1 file changed, 53 insertions(+) create mode 100755 t