[Qemu-devel] [PATCH 2/3] fixup! qapi/string-output-visitor: fix bugs

2014-06-20 Thread Hu Tao
0x1-0x10 looks better than 0x1-10 Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- qapi/string-output-visitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qapi/string-output-visitor.c b/qapi/string-output-visitor.c index e9aca3b..1ab8574 100644 ---

[Qemu-devel] [RFC PATCH V3 0/2] support xen HVM direct kernel boot

2014-06-20 Thread Chunyan Liu
Updated current patch series for working with qemu-xen and default BIOS (seabios), to make it in good shape. Stubdom support will be continued. xen side patch: pass kernel/initrd/append parameters to qemu-dm qemu side patch: reuse load_linux() for xen hvm direct kernel boot. Different from

Re: [Qemu-devel] [PATCH 1/3] fixup! libqemustub: add more stubs for qemu-char

2014-06-20 Thread Nikolay Nikolaev
On Fri, Jun 20, 2014 at 8:55 AM, Hu Tao hu...@cn.fujitsu.com wrote: build stub/qemu-chr-open-spice.o only with CONFIG_SPICE, this suppresses the warning when building without CONFIG_SPICE. Cc: Nikolay Nikolaev n.nikol...@virtualopensystems.com Signed-off-by: Hu Tao hu...@cn.fujitsu.com ---

[Qemu-devel] [RFC PATCH V3 1/2] xen: pass kernel initrd to qemu

2014-06-20 Thread Chunyan Liu
xen side patch to support xen HVM direct kernel boot: support 'kernel', 'ramdisk', 'cmdline' (and 'root', 'extra' as well which would be deprecated later) in HVM config file, parse config file, pass -kernel, -initrd, -append parameters to qemu. It's working with qemu-xen when using the default

Re: [Qemu-devel] [PATCH v2 0/2] block: thread-safety patches for virtio-blk dataplane rerror/werror

2014-06-20 Thread Paolo Bonzini
- Messaggio originale - Da: Stefan Hajnoczi stefa...@redhat.com A: Paolo Bonzini pbonz...@redhat.com Cc: qemu-devel@nongnu.org, f...@redhat.com, kw...@redhat.com Inviato: Venerdì, 20 giugno 2014 5:58:59 Oggetto: Re: [PATCH v2 0/2] block: thread-safety patches for virtio-blk

[Qemu-devel] [RFC PATCH V3 2/2] qemu: support xen hvm direct kernel boot

2014-06-20 Thread Chunyan Liu
qemu side patch to support xen HVM direct kernel boot: if -kernel exists, calls xen_load_linux(), which will read kernel/initrd and add a linuxboot.bin or multiboot.bin option rom. The linuxboot.bin/multiboot.bin will load kernel/initrd and jump to execute kernel directly. It's working when xen

Re: [Qemu-devel] [PATCH v5 10/12] hw/mips: malta: Add KVM support

2014-06-20 Thread Paolo Bonzini
- Messaggio originale - Da: Aurelien Jarno aurel...@aurel32.net A: Sanjay Lal sanj...@kymasys.com Cc: James Hogan james.ho...@imgtec.com, qemu-devel@nongnu.org, Peter Maydell peter.mayd...@linaro.org, k...@vger.kernel.org, Gleb Natapov g...@redhat.com, Paolo Bonzini

Re: [Qemu-devel] [RFC 0/3] image-fuzzer: Initial image generator and extended runner

2014-06-20 Thread Fam Zheng
Should be v2 in the subject? On Wed, 06/18 20:14, Maria Kustova wrote: These patches relate to qcow2 image fuzzer project at OPW. Overall fix: Current license for all files are GPLv2 Runner: Fixes (based on reviews): * added mandatory parameter for image generator * removed image

[Qemu-devel] [PATCH] spice: fix 32bit build

2014-06-20 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/display/qxl.c | 2 +- ui/spice-display.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/display/qxl.c b/hw/display/qxl.c index 736fd3c..d43aa49 100644 --- a/hw/display/qxl.c +++ b/hw/display/qxl.c @@ -710,7 +710,7

[Qemu-devel] [PATCH] usb: initialize libusb_device to avoid crash

2014-06-20 Thread Jincheng Miao
If libusb_get_device_list() fails, the uninitialized local variable libusb_device would be passed to libusb_free_device_list(), that will cause a crash, like: (gdb) bt #0 0x7fbbb4bafc10 in pthread_mutex_lock () from /lib64/libpthread.so.0 #1 0x7fbbb233e653 in libusb_unref_device

Re: [Qemu-devel] [PATCH 1/3] fixup! libqemustub: add more stubs for qemu-char

2014-06-20 Thread Hu Tao
On Fri, Jun 20, 2014 at 09:03:59AM +0300, Nikolay Nikolaev wrote: On Fri, Jun 20, 2014 at 8:55 AM, Hu Tao hu...@cn.fujitsu.com wrote: build stub/qemu-chr-open-spice.o only with CONFIG_SPICE, this suppresses the warning when building without CONFIG_SPICE. Cc: Nikolay

[Qemu-devel] SMP support for MIPS: Access register set of all CPU's on one

2014-06-20 Thread Maryyam Muhammad Din
Hi everyone I am trying to emulate SMP support for mips in qemu. But i am unable to handle inter core communication. I want to access general purpose registers of CPU 1 when currently running CPU is 0. Can anyone suggest me how QEMU handle it? and how can i access register set of all CPU's on one

[Qemu-devel] [PATCH v2 0/4] tests: add usb host adapter qtest cases

2014-06-20 Thread arei.gonglei
From: Gonglei arei.gong...@huawei.com This patch series base on my request usb host adapter hotplug/unplug series: [PATCH v3 00/10] usb: usb host adapter hotplug http://lists.gnu.org/archive/html/qemu-devel/2014-06/msg00746.html Changes since v1: * By Andreas suggestion: - rework

[Qemu-devel] [PATCH v2 1/4] tests: add OHCI qtest

2014-06-20 Thread arei.gonglei
From: Gonglei arei.gong...@huawei.com Signed-off-by: Gonglei arei.gong...@huawei.com --- MAINTAINERS | 2 +- tests/Makefile| 3 +++ tests/usb-hcd-ohci-test.c | 35 +++ 3 files changed, 39 insertions(+), 1 deletion(-) create mode 100644

[Qemu-devel] [PATCH v2 2/4] tests: add UHCI qtest

2014-06-20 Thread arei.gonglei
From: Gonglei arei.gong...@huawei.com Signed-off-by: Gonglei arei.gong...@huawei.com --- tests/Makefile| 4 +++- tests/usb-hcd-uhci-test.c | 36 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 tests/usb-hcd-uhci-test.c diff

[Qemu-devel] [PATCH v2 3/4] tests: add xHCI qtest

2014-06-20 Thread arei.gonglei
From: Gonglei arei.gong...@huawei.com Signed-off-by: Gonglei arei.gong...@huawei.com --- tests/Makefile| 3 +++ tests/usb-hcd-xhci-test.c | 36 2 files changed, 39 insertions(+) create mode 100644 tests/usb-hcd-xhci-test.c diff --git

[Qemu-devel] [PATCH v2 4/4] tests: add usb hcds hotplugging qtest

2014-06-20 Thread arei.gonglei
From: Gonglei arei.gong...@huawei.com Because of we now support usb hcds hotplugging, and collect all hcds hotplugging tests into one file for code sharing. Signed-off-by: Gonglei arei.gong...@huawei.com --- tests/Makefile | 2 + tests/usb-hcd-hotplug-test.c | 88

[Qemu-devel] [PATCH v2] fixup! libqemustub: add more stubs for qemu-char

2014-06-20 Thread Hu Tao
build stub/qemu-chr-open-spice.o only with CONFIG_SPICE, this suppresses the warning when building without CONFIG_SPICE. Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- stubs/Makefile.objs | 2 +- stubs/qemu-chr-open-spice.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) v2: -

Re: [Qemu-devel] [PATCH 0/5] Platform device support

2014-06-20 Thread Peter Crosthwaite
On Wed, Jun 4, 2014 at 10:28 PM, Alexander Graf ag...@suse.de wrote: Platforms without ISA and/or PCI have had a seriously hard time in the dynamic device creation world of QEMU. Devices on these were modeled as SysBus devices which can only be instantiated in machine files, not through

Re: [Qemu-devel] [PATCH 0/5] Platform device support

2014-06-20 Thread Paolo Bonzini
Il 20/06/2014 08:43, Peter Crosthwaite ha scritto: I think a big point of confusion here is you have picked a not-even-qdevified device for conversion. Boards are still calling serial_mm_init() directly due to lack of a proper device for Sysbus serial. Do you have another device that already

Re: [Qemu-devel] [PATCH] usb: initialize libusb_device to avoid crash

2014-06-20 Thread Gonglei (Arei)
-Original Message- From: qemu-devel-bounces+arei.gonglei=huawei@nongnu.org [mailto:qemu-devel-bounces+arei.gonglei=huawei@nongnu.org] On Behalf Of Jincheng Miao Sent: Friday, June 20, 2014 2:13 PM To: qemu-devel@nongnu.org Cc: kra...@redhat.com; Jincheng Miao

Re: [Qemu-devel] [PATCH v8 17/20] virtio-scsi: use virtio wrappers to access headers

2014-06-20 Thread Paolo Bonzini
Il 13/06/2014 13:24, Greg Kurz ha scritto: From: Rusty Russell ru...@rustcorp.com.au Note that st*_raw and ld*_raw are effectively replaced by st*_p and ld*_p. Signed-off-by: Rusty Russell ru...@rustcorp.com.au Reviewed-by: Anthony Liguori aligu...@us.ibm.com [ pass VirtIODevice * to memory

Re: [Qemu-devel] [PATCH 1/3] fixup! libqemustub: add more stubs for qemu-char

2014-06-20 Thread Peter Maydell
On 20 June 2014 06:55, Hu Tao hu...@cn.fujitsu.com wrote: build stub/qemu-chr-open-spice.o only with CONFIG_SPICE, this suppresses the warning when building without CONFIG_SPICE. I notice there's been a bunch of these !fixup patches on list recently. Do you think you could add something in the

Re: [Qemu-devel] [PATCH v10 6/6] qcow2: Add full image preallocation option

2014-06-20 Thread Hu Tao
On Sat, Jun 14, 2014 at 10:37:33PM +0200, Max Reitz wrote: On 12.06.2014 05:54, Hu Tao wrote: This adds a preallocation=full mode to qcow2 image creation, which creates a non-sparse image file. Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- block/qcow2.c | 90

Re: [Qemu-devel] [PATCH 1/3] fixup! libqemustub: add more stubs for qemu-char

2014-06-20 Thread Hu Tao
On Fri, Jun 20, 2014 at 09:26:32AM +0100, Peter Maydell wrote: On 20 June 2014 06:55, Hu Tao hu...@cn.fujitsu.com wrote: build stub/qemu-chr-open-spice.o only with CONFIG_SPICE, this suppresses the warning when building without CONFIG_SPICE. I notice there's been a bunch of these !fixup

[Qemu-devel] [PATCH v3] qmp: add ACPI_DEVICE_OST event handling

2014-06-20 Thread Igor Mammedov
emits event when ACPI OSPM evaluates _OST method of ACPI device. Signed-off-by: Igor Mammedov imamm...@redhat.com --- v2: - use new QAPI event infrastructure from rebased PCI tree on top of today's QMP pull request --- hw/acpi/memory_hotplug.c |7 ++- qapi-event.json |

Re: [Qemu-devel] [PATCH v8 17/20] virtio-scsi: use virtio wrappers to access headers

2014-06-20 Thread Greg Kurz
On Fri, 20 Jun 2014 10:24:43 +0200 Paolo Bonzini pbonz...@redhat.com wrote: Il 13/06/2014 13:24, Greg Kurz ha scritto: From: Rusty Russell ru...@rustcorp.com.au Note that st*_raw and ld*_raw are effectively replaced by st*_p and ld*_p. Signed-off-by: Rusty Russell ru...@rustcorp.com.au

Re: [Qemu-devel] [PATCH v5 10/12] hw/mips: malta: Add KVM support

2014-06-20 Thread James Hogan
Hi, On 20/06/14 07:07, Paolo Bonzini wrote: - Messaggio originale - Da: Aurelien Jarno aurel...@aurel32.net A: Sanjay Lal sanj...@kymasys.com Cc: James Hogan james.ho...@imgtec.com, qemu-devel@nongnu.org, Peter Maydell peter.mayd...@linaro.org, k...@vger.kernel.org, Gleb Natapov

Re: [Qemu-devel] [PATCH] bitops: provide an inline implementation of find_first_bit

2014-06-20 Thread Aurelien Jarno
On Thu, Jun 19, 2014 at 10:36:18AM +0200, Paolo Bonzini wrote: Il 22/12/2013 12:32, Aurelien Jarno ha scritto: find_first_bit has started to be used heavily in TCG code. The current implementation based on find_next_bit is not optimal and can't be optimized be the compiler if the bit array has

Re: [Qemu-devel] [PATCH] bitops: provide an inline implementation of find_first_bit

2014-06-20 Thread Paolo Bonzini
Il 20/06/2014 10:48, Aurelien Jarno ha scritto: In practice on x86_64, this function takes 27 instructions in the general case, and 18 instructions in the fixed case, even for big sizes. I therefore think that checking if the size is constant is a good idea, but we should not make any test on

Re: [Qemu-devel] [PATCH v5 10/12] hw/mips: malta: Add KVM support

2014-06-20 Thread Aurelien Jarno
On Fri, Jun 20, 2014 at 02:07:05AM -0400, Paolo Bonzini wrote: - Messaggio originale - Da: Aurelien Jarno aurel...@aurel32.net A: Sanjay Lal sanj...@kymasys.com Cc: James Hogan james.ho...@imgtec.com, qemu-devel@nongnu.org, Peter Maydell peter.mayd...@linaro.org,

Re: [Qemu-devel] [PATCH net v1 1/1] net: cadence_gem: Convert to realize()

2014-06-20 Thread Stefan Hajnoczi
On Wed, Jun 18, 2014 at 09:54:17PM -0700, Peter Crosthwaite wrote: SysBusDevice::init is deprecated. Convert to Object::init and Device::realize as prescribed by QOM conventions. Signed-off-by: Peter Crosthwaite peter.crosthwa...@xilinx.com --- hw/net/cadence_gem.c | 24

[Qemu-devel] [PATCH] Add support for the arm breakpoint syscall.

2014-06-20 Thread Hunter Laux
--- linux-user/arm/syscall.h | 1 + linux-user/main.c| 4 2 files changed, 5 insertions(+) diff --git a/linux-user/arm/syscall.h b/linux-user/arm/syscall.h index ce2c2a8..e0d2cc3 100644 --- a/linux-user/arm/syscall.h +++ b/linux-user/arm/syscall.h @@ -29,6 +29,7 @@ struct

Re: [Qemu-devel] [PATCH v5 10/12] hw/mips: malta: Add KVM support

2014-06-20 Thread James Hogan
On 19/06/14 22:47, Aurelien Jarno wrote: On Thu, Jun 19, 2014 at 12:34:24PM -0700, Sanjay Lal wrote: On Jun 19, 2014, at 9:27 AM, Aurelien Jarno aurel...@aurel32.net wrote: On Tue, Jun 17, 2014 at 11:10:35PM +0100, James Hogan wrote: In KVM mode the bootrom is loaded and executed from the

[Qemu-devel] [PATCH v9] net: L2TPv3 transport

2014-06-20 Thread anton . ivanov
From: Anton Ivanov antiv...@cisco.com This transport allows to connect a QEMU nic to a static Ethernet over L2TPv3 tunnel. The transport supports all options present in the Linux kernel implementation. It allows QEMU to connect to any Linux host running kernel 3.3+, most routers and network

[Qemu-devel] [PATCH] Add support for the arm breakpoint syscall

2014-06-20 Thread Hunter Laux
Signed-off-by: Hunter Laux hunterl...@gmail.com --- linux-user/arm/syscall.h | 1 + linux-user/main.c| 4 2 files changed, 5 insertions(+) diff --git a/linux-user/arm/syscall.h b/linux-user/arm/syscall.h index ce2c2a8..e0d2cc3 100644 --- a/linux-user/arm/syscall.h +++

Re: [Qemu-devel] [RFC][PATCH] gpu:drm:i915:intel_detect_pch: back to check devfn instead of check class type

2014-06-20 Thread Chen, Tiejun
Just ping, any comments? Thanks Tiejun On 2014/6/19 17:53, Tiejun Chen wrote: Originally the reason to probe ISA bridge instead of Dev31:Fun0 is to make graphics device passthrough work easy for VMM, that only need to expose ISA bridge to let driver know the real hardware underneath. This is a

Re: [Qemu-devel] [PATCH] bitops: provide an inline implementation of find_first_bit

2014-06-20 Thread Aurelien Jarno
On Fri, Jun 20, 2014 at 10:58:31AM +0200, Paolo Bonzini wrote: Il 20/06/2014 10:48, Aurelien Jarno ha scritto: In practice on x86_64, this function takes 27 instructions in the general case, and 18 instructions in the fixed case, even for big sizes. I therefore think that checking if the size

Re: [Qemu-devel] [PATCH v2 0/4] tests: add usb host adapter qtest cases

2014-06-20 Thread Gerd Hoffmann
On Fr, 2014-06-20 at 14:29 +0800, arei.gong...@huawei.com wrote: From: Gonglei arei.gong...@huawei.com This patch series base on my request usb host adapter hotplug/unplug series: Fails to build: CCtests/usb-hcd-hotplug-test.o /home/kraxel/projects/qemu/tests/usb-hcd-hotplug-test.c:

Re: [Qemu-devel] [PATCH] Add support for the arm breakpoint syscall.

2014-06-20 Thread Peter Maydell
[cc'ing Riku as the linux-user maintainer.] On 20 June 2014 10:14, Hunter Laux hunterl...@gmail.com wrote: Thanks for writing this patch. It mostly looks good but there are some minor admin/format tweaks we need. You need to provide a Signed-off-by: line here, or we can't take this patch, I'm

[Qemu-devel] [PATCH v3] hw/mips: gt64xxx_pci: Add VMStateDescription

2014-06-20 Thread James Hogan
From: Sanjay Lal sanj...@kymasys.com Add VMStateDescription for GT64120 PCI emulation used by the Malta platform, to allow it to work with savevm/loadvm and live migration. The entire register array is saved/restored using VMSTATE_UINT32_ARRAY (fixed length GT_REGS = 1024). Signed-off-by:

Re: [Qemu-devel] [PATCH v3] hw/mips: gt64xxx_pci: Add VMStateDescription

2014-06-20 Thread James Hogan
On 20/06/14 11:25, James Hogan wrote: From: Sanjay Lal sanj...@kymasys.com Add VMStateDescription for GT64120 PCI emulation used by the Malta platform, to allow it to work with savevm/loadvm and live migration. The entire register array is saved/restored using VMSTATE_UINT32_ARRAY (fixed

Re: [Qemu-devel] [PATCH v5 10/12] hw/mips: malta: Add KVM support

2014-06-20 Thread Paolo Bonzini
Il 20/06/2014 11:10, Aurelien Jarno ha scritto: My idea was to add a machines-specific option umkernel=on, and require it in order to run KVM. Later we can add umkernel=on support for TCG as well, while umkernel=off with KVM requires virtualization extensions. The same option can disable

Re: [Qemu-devel] [PATCH v3] hw/mips: gt64xxx_pci: Add VMStateDescription

2014-06-20 Thread Aurelien Jarno
On Fri, Jun 20, 2014 at 11:25:47AM +0100, James Hogan wrote: From: Sanjay Lal sanj...@kymasys.com Add VMStateDescription for GT64120 PCI emulation used by the Malta platform, to allow it to work with savevm/loadvm and live migration. The entire register array is saved/restored using

Re: [Qemu-devel] [PATCH v5 10/12] hw/mips: malta: Add KVM support

2014-06-20 Thread Paolo Bonzini
Il 20/06/2014 11:25, James Hogan ha scritto: On 19/06/14 22:47, Aurelien Jarno wrote: On Thu, Jun 19, 2014 at 12:34:24PM -0700, Sanjay Lal wrote: On Jun 19, 2014, at 9:27 AM, Aurelien Jarno aurel...@aurel32.net wrote: On Tue, Jun 17, 2014 at 11:10:35PM +0100, James Hogan wrote: In KVM mode

Re: [Qemu-devel] [PATCH v3] hw/mips: gt64xxx_pci: Add VMStateDescription

2014-06-20 Thread Paolo Bonzini
Il 20/06/2014 12:58, Aurelien Jarno ha scritto: On Fri, Jun 20, 2014 at 11:25:47AM +0100, James Hogan wrote: From: Sanjay Lal sanj...@kymasys.com Add VMStateDescription for GT64120 PCI emulation used by the Malta platform, to allow it to work with savevm/loadvm and live migration. The entire

[Qemu-devel] [PATCH v2] Add support for the arm breakpoint syscall

2014-06-20 Thread Hunter Laux
OABI arm used a software interrupt(0xef9f0001) for breakpoints. Since 2005 gdb has used the break instruction(0xe7f001f0) for EABI. Apparently Steel Bank Common Lisp still uses the swi instruction. This is the kernel implementation:

Re: [Qemu-devel] [PATCH v2 0/4] tests: add usb host adapter qtest cases

2014-06-20 Thread Gonglei (Arei)
-Original Message- From: Gerd Hoffmann [mailto:kra...@redhat.com] Sent: Friday, June 20, 2014 5:45 PM To: Gonglei (Arei) Cc: qemu-devel@nongnu.org; afaer...@suse.de; stefa...@redhat.com; ebl...@redhat.com; ak...@redhat.com; Huangweidong (C); Luonengjun; Huangpeng (Peter) Subject:

Re: [Qemu-devel] [PATCH v2] Add support for the arm breakpoint syscall

2014-06-20 Thread Peter Maydell
On 20 June 2014 12:13, Hunter Laux hunterl...@gmail.com wrote: OABI arm used a software interrupt(0xef9f0001) for breakpoints. Since 2005 gdb has used the break instruction(0xe7f001f0) for EABI. Apparently Steel Bank Common Lisp still uses the swi instruction. This is the kernel

Re: [Qemu-devel] [PATCH v5 10/12] hw/mips: malta: Add KVM support

2014-06-20 Thread Aurelien Jarno
On Fri, Jun 20, 2014 at 12:38:30PM +0200, Paolo Bonzini wrote: Il 20/06/2014 11:10, Aurelien Jarno ha scritto: My idea was to add a machines-specific option umkernel=on, and require it in order to run KVM. Later we can add umkernel=on support for TCG as well, while umkernel=off with KVM

Re: [Qemu-devel] [PATCH v5 10/12] hw/mips: malta: Add KVM support

2014-06-20 Thread Aurelien Jarno
On Fri, Jun 20, 2014 at 10:25:24AM +0100, James Hogan wrote: On 19/06/14 22:47, Aurelien Jarno wrote: On Thu, Jun 19, 2014 at 12:34:24PM -0700, Sanjay Lal wrote: On Jun 19, 2014, at 9:27 AM, Aurelien Jarno aurel...@aurel32.net wrote: On Tue, Jun 17, 2014 at 11:10:35PM +0100, James Hogan

[Qemu-devel] [PATCH v3 2/4] tests: add UHCI qtest

2014-06-20 Thread arei.gonglei
From: Gonglei arei.gong...@huawei.com Signed-off-by: Gonglei arei.gong...@huawei.com --- tests/Makefile| 4 +++- tests/usb-hcd-uhci-test.c | 36 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 tests/usb-hcd-uhci-test.c diff

[Qemu-devel] [PATCH v3 4/4] tests: add usb hcds hotplugging qtest

2014-06-20 Thread arei.gonglei
From: Gonglei arei.gong...@huawei.com Because of we now support usb hcds hotplugging, and collect all hcds hotplugging tests into one file for code sharing. Signed-off-by: Gonglei arei.gong...@huawei.com --- tests/Makefile | 2 + tests/usb-hcd-hotplug-test.c | 88

[Qemu-devel] [PATCH v3 0/4] tests: add usb host adapter qtest cases

2014-06-20 Thread arei.gonglei
From: Gonglei arei.gong...@huawei.com This patch series base on my request usb host adapter hotplug/unplug series: [PATCH v3 00/10] usb: usb host adapter hotplug http://lists.gnu.org/archive/html/qemu-devel/2014-06/msg00746.html Changes since v2: - add 'const' qualifier argument in

[Qemu-devel] [PATCH v3 1/4] tests: add OHCI qtest

2014-06-20 Thread arei.gonglei
From: Gonglei arei.gong...@huawei.com Signed-off-by: Gonglei arei.gong...@huawei.com --- MAINTAINERS | 2 +- tests/Makefile| 3 +++ tests/usb-hcd-ohci-test.c | 35 +++ 3 files changed, 39 insertions(+), 1 deletion(-) create mode 100644

[Qemu-devel] [PATCH v3 3/4] tests: add xHCI qtest

2014-06-20 Thread arei.gonglei
From: Gonglei arei.gong...@huawei.com Signed-off-by: Gonglei arei.gong...@huawei.com --- tests/Makefile| 3 +++ tests/usb-hcd-xhci-test.c | 36 2 files changed, 39 insertions(+) create mode 100644 tests/usb-hcd-xhci-test.c diff --git

Re: [Qemu-devel] [PATCH v5 10/12] hw/mips: malta: Add KVM support

2014-06-20 Thread James Hogan
On 20/06/14 12:19, Aurelien Jarno wrote: On Fri, Jun 20, 2014 at 12:38:30PM +0200, Paolo Bonzini wrote: Il 20/06/2014 11:10, Aurelien Jarno ha scritto: My idea was to add a machines-specific option umkernel=on, and require it in order to run KVM. Later we can add umkernel=on support for TCG

[Qemu-devel] [PATCH] hw/mips: malta: Don't boot from flash with KVM TE

2014-06-20 Thread James Hogan
In KVM trap emulate (TE) mode the flash reset region at 0xbfc0 isn't executable, which is why the minimal kernel bootloader is loaded and executed from the last 1MB of DRAM instead. Therefore if no kernel is provided on the command line and KVM is enabled, exit with an error since booting

Re: [Qemu-devel] [RFC PATCH V3 2/2] qemu: support xen hvm direct kernel boot

2014-06-20 Thread Stefano Stabellini
On Fri, 20 Jun 2014, Chunyan Liu wrote: qemu side patch to support xen HVM direct kernel boot: if -kernel exists, calls xen_load_linux(), which will read kernel/initrd and add a linuxboot.bin or multiboot.bin option rom. The linuxboot.bin/multiboot.bin will load kernel/initrd and jump to

[Qemu-devel] [PULL 01/14] KVM: Fix GSI number space limit

2014-06-20 Thread Paolo Bonzini
From: Alexander Graf ag...@suse.de KVM tells us the number of GSIs it can handle inside the kernel. That value is basically KVM_MAX_IRQ_ROUTES. However when we try to set the GSI mapping table, it checks for r = -EINVAL; if (routing.nr = KVM_MAX_IRQ_ROUTES) goto out; erroring

[Qemu-devel] [PULL 02/14] target-mips: Reset CPU timer consistently

2014-06-20 Thread Paolo Bonzini
From: James Hogan james.ho...@imgtec.com The MIPS CPU timer (CP0 Count/Compare registers QEMU timer) is reset at machine initialisation, including starting the timeout. Both registers however are placed before mvp in CPUMIPSState so they will both be zeroed on reset by the memset in

[Qemu-devel] [PULL 03/14] hw/mips/cputimer: Don't start periodic timer in KVM mode

2014-06-20 Thread Paolo Bonzini
From: Sanjay Lal sanj...@kymasys.com Compare/Count timer interrupts are handled in-kernel for KVM. Therefore don't bother creating the timer at init time if KVM is enabled. This will conveniently avoid attempts to set the timeout when cpu_mips_store_count() is called at reset with KVM enabled,

[Qemu-devel] [PULL 09/14] target-mips: Call kvm_mips_reset_vcpu() from mips_cpu_reset()

2014-06-20 Thread Paolo Bonzini
From: James Hogan james.ho...@imgtec.com When KVM is enabled call kvm_mips_reset_vcpu() from mips_cpu_reset() as done for other targets since commit 50a2c6e55fa2 (kvm: reset state from the CPU's reset method). Signed-off-by: James Hogan james.ho...@imgtec.com Cc: Aurelien Jarno

[Qemu-devel] [PULL 00/14] Pending KVM patches for 2.1

2014-06-20 Thread Paolo Bonzini
The following changes since commit af44da87e926ff64260b95f4350d338c4fc113ca: Merge remote-tracking branch 'remotes/agraf/tags/signed-ppc-for-upstream' into staging (2014-06-16 18:26:21 +0100) are available in the git repository at: git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git

[Qemu-devel] [PULL 13/14] MAINTAINERS: Add entry for MIPS KVM

2014-06-20 Thread Paolo Bonzini
From: James Hogan james.ho...@imgtec.com Add MAINTAINERS entry for MIPS KVM. Signed-off-by: James Hogan james.ho...@imgtec.com Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- MAINTAINERS |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS

[Qemu-devel] [PULL 05/14] target-mips: get_physical_address: Add defines for segment bases

2014-06-20 Thread Paolo Bonzini
From: James Hogan james.ho...@imgtec.com Add preprocessor definitions for 32bit segment bases for use in get_physical_address(). These will also be taken advantage of in the next patch which adds KVM awareness. Signed-off-by: James Hogan james.ho...@imgtec.com Reviewed-by: Aurelien Jarno

[Qemu-devel] [PULL 06/14] target-mips: get_physical_address: Add KVM awareness

2014-06-20 Thread Paolo Bonzini
From: James Hogan james.ho...@imgtec.com MIPS KVM trap emulate mode (which is currently the only supported mode) has to add an extra kseg0/kseg1 at 0x4000 and an extra kseg2/kseg3 at 0x6000. Take this into account in get_physical_address() so that debug memory access works. This is done

[Qemu-devel] [PATCH 1/2] docs: update ivshmem device spec

2014-06-20 Thread David Marchand
Add some notes on the parts needed to use ivshmem devices: more specifically, explain the purpose of an ivshmem server and the basic concept to use the ivshmem devices in guests. Signed-off-by: David Marchand david.march...@6wind.com --- docs/specs/ivshmem_device_spec.txt | 41

[Qemu-devel] [PATCH 2/2] contrib: add ivshmem client and server

2014-06-20 Thread David Marchand
When using ivshmem devices, notifications between guests can be sent as interrupts using a ivshmem-server (typical use described in documentation). The client is provided as a debug tool. Signed-off-by: David Marchand david.march...@6wind.com --- contrib/ivshmem-client/Makefile | 26 ++

[Qemu-devel] [PULL 10/14] hw/mips: In KVM mode, inject IRQ2 (I/O) interrupts via ioctls

2014-06-20 Thread Paolo Bonzini
From: Sanjay Lal sanj...@kymasys.com COP0 emulation is in-kernel for KVM, so inject IRQ2 (I/O) interrupts via ioctls. Signed-off-by: Sanjay Lal sanj...@kymasys.com Signed-off-by: James Hogan james.ho...@imgtec.com Reviewed-by: Aurelien Jarno aurel...@aurel32.net Reviewed-by: Andreas Färber

[Qemu-devel] [PULL 07/14] kvm: Allow arch to set sigmask length

2014-06-20 Thread Paolo Bonzini
From: James Hogan james.ho...@imgtec.com MIPS/Linux is unusual in having 128 signals rather than just 64 like most other architectures. This means its sigmask is 16 bytes instead of 8, so allow arches to override the sigmask-len value passed to the KVM_SET_SIGNAL_MASK ioctl in

[Qemu-devel] [PATCH 0/2] ivshmem: update documentation, add client/server tools

2014-06-20 Thread David Marchand
Hello, (as suggested by Paolo, ccing Claudio and kvm mailing list) Here is a patchset containing an update on ivshmem specs documentation and importing ivshmem server and client tools. These tools have been written from scratch and are not related to what is available in nahanni repository. I

[Qemu-devel] [PULL 11/14] hw/mips: malta: Add KVM support

2014-06-20 Thread Paolo Bonzini
From: James Hogan james.ho...@imgtec.com In KVM mode the bootrom is loaded and executed from the last 1MB of DRAM. Based on [PATCH 12/12] KVM/MIPS: General KVM support and support for SMP Guests by Sanjay Lal sanj...@kymasys.com. Signed-off-by: James Hogan james.ho...@imgtec.com Reviewed-by:

[Qemu-devel] [PULL 08/14] target-mips: kvm: Add main KVM support for MIPS

2014-06-20 Thread Paolo Bonzini
From: Sanjay Lal sanj...@kymasys.com Implement the main KVM arch API for MIPS. Signed-off-by: Sanjay Lal sanj...@kymasys.com Signed-off-by: James Hogan james.ho...@imgtec.com Cc: Aurelien Jarno aurel...@aurel32.net Cc: Gleb Natapov g...@redhat.com Cc: Paolo Bonzini pbonz...@redhat.com Cc:

[Qemu-devel] [PULL 12/14] target-mips: Enable KVM support in build system

2014-06-20 Thread Paolo Bonzini
From: Sanjay Lal sanj...@kymasys.com Enable KVM support for MIPS in the build system. Signed-off-by: Sanjay Lal sanj...@kymasys.com Signed-off-by: James Hogan james.ho...@imgtec.com Reviewed-by: Aurelien Jarno aurel...@aurel32.net Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- configure

[Qemu-devel] [PULL 14/14] hw/mips: malta: Don't boot from flash with KVM TE

2014-06-20 Thread Paolo Bonzini
From: James Hogan james.ho...@imgtec.com In KVM trap emulate (TE) mode the flash reset region at 0xbfc0 isn't executable, which is why the minimal kernel bootloader is loaded and executed from the last 1MB of DRAM instead. Therefore if no kernel is provided on the command line and KVM is

Re: [Qemu-devel] [PATCH 2.1 v7 3/3] xen-hvm: Handle machine opt max-ram-below-4g

2014-06-20 Thread Stefano Stabellini
On Thu, 19 Jun 2014, Don Slutz wrote: This is the xen part of pc q35: Add new machine opt max-ram-below-4g Note: this machine option cannot be used to increase the amount of ram below 4G. Signed-off-by: Don Slutz dsl...@verizon.com It is still good for me. v7: Rename from

Re: [Qemu-devel] [PATCH] linux-user: added fake open() for /proc/self/cmdline

2014-06-20 Thread Riku Voipio
On Wed, Jun 18, 2014 at 11:02:39AM +0200, li...@fixnum.org wrote: From: Wim Vander Schelden w...@fixnum.org Seems to work, applied to linux-user updates Signed-off-by: Wim Vander Schelden w...@fixnum.org --- linux-user/syscall.c | 46 ++ 1 file

Re: [Qemu-devel] [RFC][PATCH] gpu:drm:i915:intel_detect_pch: back to check devfn instead of check class type

2014-06-20 Thread Paolo Bonzini
Il 19/06/2014 11:53, Tiejun Chen ha scritto: so this mean that isa bridge is still represented with Dev31:Func0 like the native OS. Furthermore, currently we're pushing VGA passthrough support into qemu upstream, and with some discussion, we wouldn't set the bridge class type and just expose

[Qemu-devel] [PULL 04/14] hw/mips: Add API to convert KVM guest KSEG0 - GPA

2014-06-20 Thread Paolo Bonzini
From: Sanjay Lal sanj...@kymasys.com Add API for converting physical addresses to KVM guest KSEG0 addresses, and fix the existing API for converting KSEG0 addresses to physical addresses to work in the KVM case. Both have the same sized KSEG0, so it's just a case of fixing the mask. In KVM trap

Re: [Qemu-devel] [PATCH 11/16] linux-user: support ioprio_{get, set} syscalls

2014-06-20 Thread Riku Voipio
On Sun, Jun 15, 2014 at 05:18:28PM +0100, Paul Burton wrote: Add support for the ioprio_get ioprio_set syscalls, allowing their use by target programs. Signed-off-by: Paul Burton p...@archlinuxmips.org --- linux-user/syscall.c | 18 ++ 1 file changed, 18 insertions(+)

Re: [Qemu-devel] [PATCH v3] hw/mips: gt64xxx_pci: Add VMStateDescription

2014-06-20 Thread Andreas Färber
Am 20.06.2014 12:58, schrieb Aurelien Jarno: Thanks for this new version, I'll apply it in the next days unless someone comes with good arguments why we should not do that. Reviewed-by: Aurelien Jarno aurel...@aurel32.net No objection to the code, I just think that hw/mips: is redundant in

Re: [Qemu-devel] problem using AHCI on xen fvm

2014-06-20 Thread Stefano Stabellini
On Thu, 19 Jun 2014, Zhang, Eniac wrote: Hi, I am trying to use AHCI controllers with xen.  The main reason for that is because windows is so picky about which type of controller it can boot on, and if you don’t have the right registry settings, you get Error 7B

Re: [Qemu-devel] [PATCH] hw/mips: malta: Don't boot from flash with KVM TE

2014-06-20 Thread Andreas Färber
Hi, Am 20.06.2014 13:47, schrieb James Hogan: In KVM trap emulate (TE) mode the flash reset region at 0xbfc0 isn't executable, which is why the minimal kernel bootloader is loaded and executed from the last 1MB of DRAM instead. Therefore if no kernel is provided on the command line and

Re: [Qemu-devel] qemu build tool version assumptions vs ours

2014-06-20 Thread Stefano Stabellini
Your concern is valid. I guess the first step would be to agree with the upstream QEMU community on lowest common denominator tools, ideally the same as ours. We already have a buildbot machine, we could introduce another one to detect build failures in this configuration and notify QEMU

[Qemu-devel] [PATCH v5 00/18] migration: add static analysis tool to check vmstate compat

2014-06-20 Thread Amit Shah
Hello, v5: - Add section / description name checking for matching names for changed fields. This has the benefit of also getting rid of the for loop in the lookup. However, for each section, like piix4_pm, all the changes have to be in one group, as against them being in different

[Qemu-devel] [PATCH v5 02/18] vmstate-static-checker: script to validate vmstate changes

2014-06-20 Thread Amit Shah
This script compares the vmstate dumps in JSON format as output by QEMU with the -dump-vmstate option. It flags various errors, like version mismatch, sections going away, size mismatches, etc. This script is tolerant of a few changes that do not change the on-wire format, like embedding a few

[Qemu-devel] [PATCH v5 06/18] tests: vmstate static checker: version mismatch inside a Description

2014-06-20 Thread Amit Shah
Signed-off-by: Amit Shah amit.s...@redhat.com Acked-by: Juan Quintela quint...@redhat.com --- tests/vmstate-static-checker-data/dump2.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/vmstate-static-checker-data/dump2.json

[Qemu-devel] [PATCH v5 08/18] tests: vmstate static checker: remove a section

2014-06-20 Thread Amit Shah
Signed-off-by: Amit Shah amit.s...@redhat.com Reviewed-by: Juan Quintela quint...@redhat.com --- tests/vmstate-static-checker-data/dump2.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/vmstate-static-checker-data/dump2.json

[Qemu-devel] [PATCH v5 04/18] tests: vmstate static checker: incompat machine types

2014-06-20 Thread Amit Shah
This commit modifies the dump2 data to flag incompatibilities in the machine types being compared. Signed-off-by: Amit Shah amit.s...@redhat.com Acked-by: Juan Quintela quint...@redhat.com --- tests/vmstate-static-checker-data/dump2.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[Qemu-devel] [PATCH v5 09/18] tests: vmstate static checker: remove a field

2014-06-20 Thread Amit Shah
Signed-off-by: Amit Shah amit.s...@redhat.com Reviewed-by: Juan Quintela quint...@redhat.com --- tests/vmstate-static-checker-data/dump2.json | 6 -- 1 file changed, 6 deletions(-) diff --git a/tests/vmstate-static-checker-data/dump2.json b/tests/vmstate-static-checker-data/dump2.json index

[Qemu-devel] [PATCH v5 14/18] tests: vmstate static checker: remove Description inside Fields

2014-06-20 Thread Amit Shah
Signed-off-by: Amit Shah amit.s...@redhat.com Reviewed-by: Juan Quintela quint...@redhat.com --- tests/vmstate-static-checker-data/dump2.json | 27 +-- 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/tests/vmstate-static-checker-data/dump2.json

[Qemu-devel] [PATCH v5 05/18] tests: vmstate static checker: add version error in main section

2014-06-20 Thread Amit Shah
Signed-off-by: Amit Shah amit.s...@redhat.com Acked-by: Juan Quintela quint...@redhat.com --- tests/vmstate-static-checker-data/dump2.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/vmstate-static-checker-data/dump2.json

[Qemu-devel] [PATCH v5 17/18] tests: vmstate static checker: add substructure for usb-kbd for hid section

2014-06-20 Thread Amit Shah
This shows how the script deals with substructures added to vmstate descriptions that don't change the on-wire format. Signed-off-by: Amit Shah amit.s...@redhat.com Reviewed-by: Juan Quintela quint...@redhat.com --- tests/vmstate-static-checker-data/dump2.json | 115 +++

[Qemu-devel] [PATCH v5 10/18] tests: vmstate static checker: remove last field in a struct

2014-06-20 Thread Amit Shah
Signed-off-by: Amit Shah amit.s...@redhat.com Reviewed-by: Juan Quintela quint...@redhat.com --- tests/vmstate-static-checker-data/dump2.json | 6 -- 1 file changed, 6 deletions(-) diff --git a/tests/vmstate-static-checker-data/dump2.json b/tests/vmstate-static-checker-data/dump2.json index

[Qemu-devel] [PATCH v5 07/18] tests: vmstate static checker: minimum_version_id check

2014-06-20 Thread Amit Shah
Signed-off-by: Amit Shah amit.s...@redhat.com Reviewed-by: Juan Quintela quint...@redhat.com --- tests/vmstate-static-checker-data/dump1.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/vmstate-static-checker-data/dump1.json

[Qemu-devel] [PATCH v5 18/18] tests: vmstate static checker: add size mismatch inside substructure

2014-06-20 Thread Amit Shah
Signed-off-by: Amit Shah amit.s...@redhat.com Reviewed-by: Juan Quintela quint...@redhat.com --- tests/vmstate-static-checker-data/dump2.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/vmstate-static-checker-data/dump2.json

[Qemu-devel] [PATCH v5 15/18] tests: vmstate static checker: remove a subsection

2014-06-20 Thread Amit Shah
Signed-off-by: Amit Shah amit.s...@redhat.com Reviewed-by: Juan Quintela quint...@redhat.com --- tests/vmstate-static-checker-data/dump2.json | 13 - 1 file changed, 13 deletions(-) diff --git a/tests/vmstate-static-checker-data/dump2.json

[Qemu-devel] [PATCH v5 11/18] tests: vmstate static checker: change description name

2014-06-20 Thread Amit Shah
Signed-off-by: Amit Shah amit.s...@redhat.com Reviewed-by: Juan Quintela quint...@redhat.com --- tests/vmstate-static-checker-data/dump2.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/vmstate-static-checker-data/dump2.json

[Qemu-devel] [PATCH v5 16/18] tests: vmstate static checker: remove Subsections

2014-06-20 Thread Amit Shah
Signed-off-by: Amit Shah amit.s...@redhat.com Reviewed-by: Juan Quintela quint...@redhat.com --- tests/vmstate-static-checker-data/dump2.json | 15 --- 1 file changed, 15 deletions(-) diff --git a/tests/vmstate-static-checker-data/dump2.json

  1   2   >