Re: [Qemu-devel] [RFC PATCH v2 1/4] net: port tap onto glib

2013-04-08 Thread liu ping fan
On Mon, Apr 8, 2013 at 7:44 PM, Stefan Hajnoczi wrote: > On Wed, Apr 03, 2013 at 05:28:39PM +0800, liu ping fan wrote: >> On Thu, Mar 28, 2013 at 10:32 PM, Stefan Hajnoczi wrote: >> > On Thu, Mar 28, 2013 at 03:55:52PM +0800, Liu Ping Fan wrote: >> >> From: Liu Ping Fan >> >> >> >> Bind each Net

Re: [Qemu-devel] [RFC PATCH v2 0/4] port network layer onto glib

2013-04-08 Thread liu ping fan
On Mon, Apr 8, 2013 at 7:46 PM, Stefan Hajnoczi wrote: > On Tue, Apr 02, 2013 at 05:49:57PM +0800, liu ping fan wrote: >> On Thu, Mar 28, 2013 at 9:40 PM, Stefan Hajnoczi wrote: >> > On Thu, Mar 28, 2013 at 09:42:47AM +0100, Paolo Bonzini wrote: >> >> Il 28/03/2013 08:55, Liu Ping Fan ha scritto:

Re: [Qemu-devel] [RFC PATCH v2 0/4] port network layer onto glib

2013-04-08 Thread liu ping fan
On Mon, Apr 8, 2013 at 7:49 PM, Stefan Hajnoczi wrote: > On Mon, Apr 01, 2013 at 04:15:06PM +0800, liu ping fan wrote: >> On Thu, Mar 28, 2013 at 10:55 PM, Stefan Hajnoczi wrote: >> > >> > On Thu, Mar 28, 2013 at 03:55:51PM +0800, Liu Ping Fan wrote: >> > It seems the AioContext vs glib issue has

Re: [Qemu-devel] [PATCH v3] hw/i386/pc: prompt not multboot or morden kernel image

2013-04-08 Thread li guang
在 2013-04-08一的 23:36 -0500,Jesse Larrew写道: > On 04/08/2013 09:27 PM, liguang wrote: > > if head magic is missing or wrong unexpectedly, we'd > > better to prompt memssage for this. > > e.g. > > I make a mistake to boot a vmlinuz for MIPS(which > > I think it's for x86) like this: > > qemu-system-x8

Re: [Qemu-devel] [PATCH v3] hw/i386/pc: prompt not multboot or morden kernel image

2013-04-08 Thread Jesse Larrew
On 04/08/2013 09:27 PM, liguang wrote: > if head magic is missing or wrong unexpectedly, we'd > better to prompt memssage for this. > e.g. > I make a mistake to boot a vmlinuz for MIPS(which > I think it's for x86) like this: > qemu-system-x86_64 -kernel vmlinuz -initrd demord > then qemu report: >

Re: [Qemu-devel] Bug in SeaBIOS virtio-ring handling bug with vhost-scsi-pci

2013-04-08 Thread Nicholas A. Bellinger
On Tue, 2013-04-09 at 12:24 +0800, Asias He wrote: > On Mon, Apr 08, 2013 at 09:09:54PM -0700, Nicholas A. Bellinger wrote: > > Ping. > > > > Any ideas on this one..? It seems like this bug would be effecting > > non vhost-scsi-pci code as well.. > > Nicholas, where is the latest v3 code. Can yo

Re: [Qemu-devel] [RFC PATCH RDMA support v5: 00/12] new formal protocol design

2013-04-08 Thread Michael R. Hines
FYI: Testable patchset can be found here: github.com:hinesmr/qemu.git, 'rdma' branch - Michael On 04/08/2013 11:04 PM, mrhi...@linux.vnet.ibm.com wrote: From: "Michael R. Hines" Changes since v4: - Created a "formal" protocol for the RDMA control channel - Dynamic, chunked page registration

Re: [Qemu-devel] Bug in SeaBIOS virtio-ring handling bug with vhost-scsi-pci

2013-04-08 Thread Asias He
On Mon, Apr 08, 2013 at 09:09:54PM -0700, Nicholas A. Bellinger wrote: > Ping. > > Any ideas on this one..? It seems like this bug would be effecting > non vhost-scsi-pci code as well.. Nicholas, where is the latest v3 code. Can you push it to your tree. > --nab > > On Thu, 2013-04-04 at 19:5

Re: [Qemu-devel] Bug in SeaBIOS virtio-ring handling bug with vhost-scsi-pci

2013-04-08 Thread Nicholas A. Bellinger
Ping. Any ideas on this one..? It seems like this bug would be effecting non vhost-scsi-pci code as well.. --nab On Thu, 2013-04-04 at 19:59 -0700, Nicholas A. Bellinger wrote: > Hi Paolo & Co, > > So I've been running into another bug with SeaBIOS w/ virtio-scsi + > vhost-scsi-pci code.. > >

Re: [Qemu-devel] [PATCH-v2 1/2] virtio-scsi: create VirtIOSCSICommon

2013-04-08 Thread Nicholas A. Bellinger
On Mon, 2013-04-08 at 16:59 -0500, Anthony Liguori wrote: > "Nicholas A. Bellinger" writes: > > > From: Paolo Bonzini > > > > This patch refactors existing virtio-scsi code into VirtIOSCSICommon > > in order to allow virtio_scsi_init_common() to be used by both internal > > virtio_scsi_init() an

[Qemu-devel] [PATCH] translate: optimize gen_intermediate_code_internal

2013-04-08 Thread liguang
Signed-off-by: liguang --- target-arm/translate.c | 17 - target-i386/translate.c | 17 - target-mips/translate.c | 16 3 files changed, 24 insertions(+), 26 deletions(-) diff --git a/target-arm/translate.c b/target-arm/translate.c index 35

[Qemu-devel] [RFC PATCH RDMA support v5: 03/12] comprehensive protocol documentation

2013-04-08 Thread mrhines
From: "Michael R. Hines" Both the protocol and interfaces are elaborated in more detail, including the new use of dynamic chunk registration, versioning, and capabilities negotiation. Signed-off-by: Michael R. Hines --- docs/rdma.txt | 313 +

[Qemu-devel] [RFC PATCH RDMA support v5: 09/12] transmit pc.ram using RDMA

2013-04-08 Thread mrhines
From: "Michael R. Hines" Signed-off-by: Michael R. Hines --- arch_init.c | 59 --- 1 file changed, 56 insertions(+), 3 deletions(-) diff --git a/arch_init.c b/arch_init.c index c2cbc71..5cf7509 100644 --- a/arch_init.c +++ b/arch_init.

[Qemu-devel] [RFC PATCH RDMA support v5: 10/12] new header file prototypes for savevm.c

2013-04-08 Thread mrhines
From: "Michael R. Hines" Signed-off-by: Michael R. Hines --- include/migration/migration.h |3 +++ include/migration/qemu-file.h |3 +++ 2 files changed, 6 insertions(+) diff --git a/include/migration/migration.h b/include/migration/migration.h index e2acec6..40de049 100644 --- a/incl

[Qemu-devel] [RFC PATCH RDMA support v5: 07/12] additional savevm.c accessors for RDMA

2013-04-08 Thread mrhines
From: "Michael R. Hines" 1. qemu_file_ops_are() 2. qemu_file_update_position()(for f->pos) Also need to be here: rdma_read_ops rdma_write_ops Signed-off-by: Michael R. Hines --- savevm.c | 57 - 1 file changed, 48 insertions(+), 9

[Qemu-devel] [RFC PATCH RDMA support v5: 02/12] check for CONFIG_RDMA

2013-04-08 Thread mrhines
From: "Michael R. Hines" Make both rdma.c and migration-rdma.c conditionally built. Signed-off-by: Michael R. Hines --- Makefile.objs |1 + 1 file changed, 1 insertion(+) diff --git a/Makefile.objs b/Makefile.objs index e568c01..32f39d3 100644 --- a/Makefile.objs +++ b/Makefile.objs @@ -4

[Qemu-devel] [RFC PATCH RDMA support v5: 04/12] introduce qemu_ram_foreach_block()

2013-04-08 Thread mrhines
From: "Michael R. Hines" Signed-off-by: Michael R. Hines --- exec.c|9 + include/exec/cpu-common.h |5 + 2 files changed, 14 insertions(+) diff --git a/exec.c b/exec.c index 786987a..5d284fc 100644 --- a/exec.c +++ b/exec.c @@ -2631,3 +2631,12 @@ bool c

[Qemu-devel] [RFC PATCH RDMA support v5: 00/12] new formal protocol design

2013-04-08 Thread mrhines
From: "Michael R. Hines" Changes since v4: - Created a "formal" protocol for the RDMA control channel - Dynamic, chunked page registration now implemented on *both* the server and client - Created new 'capability' for page registration - Created new 'capability' for is_zero_page() - enabled by

[Qemu-devel] [RFC PATCH RDMA support v5: 11/12] update schema to define new capabilities

2013-04-08 Thread mrhines
From: "Michael R. Hines" Signed-off-by: Michael R. Hines --- qapi-schema.json |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qapi-schema.json b/qapi-schema.json index db542f6..7ebcf99 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -602,7 +602,7 @@ # Since: 1.2

[Qemu-devel] [RFC PATCH RDMA support v5: 12/12] don't set nonblock on invalid file descriptor

2013-04-08 Thread mrhines
From: "Michael R. Hines" migration.c thinks this is an error for RDMA, but it's not. Signed-off-by: Michael R. Hines --- util/oslib-posix.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/util/oslib-posix.c b/util/oslib-posix.c index 4e4b819..0b398f4 100644 --- a/util/oslib-posix.c ++

[Qemu-devel] [RFC PATCH RDMA support v5: 08/12] new capabilities added and check for QMP string 'rdma'

2013-04-08 Thread mrhines
From: "Michael R. Hines" 1. capability for zero pages (enabled by default) 2. capability for dynamic server chunk registration (disabled by default) Signed-off-by: Michael R. Hines --- migration.c | 41 ++--- 1 file changed, 38 insertions(+), 3 deletions(-

[Qemu-devel] [RFC PATCH RDMA support v5: 06/12] connection-establishment for RDMA

2013-04-08 Thread mrhines
From: "Michael R. Hines" Signed-off-by: Michael R. Hines --- migration-rdma.c | 121 ++ 1 file changed, 121 insertions(+) create mode 100644 migration-rdma.c diff --git a/migration-rdma.c b/migration-rdma.c new file mode 100644 index 0

[Qemu-devel] [RFC PATCH RDMA support v5: 01/12] ./configure with and without --enable-rdma

2013-04-08 Thread mrhines
From: "Michael R. Hines" Signed-off-by: Michael R. Hines --- configure | 25 + 1 file changed, 25 insertions(+) diff --git a/configure b/configure index 3738de4..127a299 100755 --- a/configure +++ b/configure @@ -180,6 +180,7 @@ xfs="" vhost_net="no" kvm="no" +rd

Re: [Qemu-devel] [PATCH 1/2] qstring: add qobject_get_length()

2013-04-08 Thread Hu Tao
'add qobject_get_length()' in the subject line but you are actually adding qstring_get_length() On Mon, Mar 25, 2013 at 03:40:38PM -0400, Luiz Capitulino wrote: > Long overdue. > > Signed-off-by: Luiz Capitulino > --- > include/qapi/qmp/qstring.h | 1 + > qobject/qstring.c | 8

[Qemu-devel] [PATCH v3] hw/i386/pc: prompt not multboot or morden kernel image

2013-04-08 Thread liguang
if head magic is missing or wrong unexpectedly, we'd better to prompt memssage for this. e.g. I make a mistake to boot a vmlinuz for MIPS(which I think it's for x86) like this: qemu-system-x86_64 -kernel vmlinuz -initrd demord then qemu report: "qemu: linux kernel too old to load a ram disk" that's

Re: [Qemu-devel] [PATCH arm-devs v1 10/15] xilinx_spips: Fix CTRL register RW bits

2013-04-08 Thread Peter Crosthwaite
Hi Peter, On Sat, Apr 6, 2013 at 4:57 AM, Peter Maydell wrote: > On 3 April 2013 05:33, Peter Crosthwaite wrote: >> The CTRL register was RAZ/WI on some of the RW bits. Even though the >> function behind these bits is invalid in QEMU, they should still be >> guest accessible. Fix. >> >> Signed-o

Re: [Qemu-devel] RFC: vfio API changes needed for powerpc (v3)

2013-04-08 Thread Yoder Stuart-B08248
> -Original Message- > From: Wood Scott-B07421 > Sent: Friday, April 05, 2013 5:17 PM > To: Yoder Stuart-B08248 > Cc: Alex Williamson; Wood Scott-B07421; ag...@suse.de; Bhushan Bharat-R65777; > Sethi Varun-B16395; > k...@vger.kernel.org; qemu-devel@nongnu.org; io...@lists.linux-foundatio

Re: [Qemu-devel] [Qemu-stable] Patch Round-up for stable 1.4.1, freeze next Tuesday

2013-04-08 Thread Serge Hallyn
Quoting Hans de Goede (hdego...@redhat.com): > Hi, > > Sorry for jumping in in the middle of this thread, but I just wrote > a patch yesterday, and Gerd included it in his usb-pull request > for today, which really should go into 1.4.1 too. > > I'm talking about this patch: > http://www.kraxel.or

Re: [Qemu-devel] Patch Round-up for stable 1.4.1, freeze next Tuesday

2013-04-08 Thread Aurelien Jarno
On Thu, Apr 04, 2013 at 05:24:42PM -0500, mdroth wrote: > On Wed, Apr 03, 2013 at 11:51:31PM +0200, Aurelien Jarno wrote: > > On Tue, Apr 02, 2013 at 04:45:05PM -0500, Michael Roth wrote: > > > Hi everyone, > > > > > > The following new patches are queued for QEMU stable v1.4.1: > > > > > > https

Re: [Qemu-devel] [PATCH-v2 1/2] virtio-scsi: create VirtIOSCSICommon

2013-04-08 Thread Anthony Liguori
"Nicholas A. Bellinger" writes: > From: Paolo Bonzini > > This patch refactors existing virtio-scsi code into VirtIOSCSICommon > in order to allow virtio_scsi_init_common() to be used by both internal > virtio_scsi_init() and external vhost-scsi-pci code. > > Changes in Patch-v2: >- Move ->g

Re: [Qemu-devel] [PATCH v5 0/7] virtio-serial refactoring.

2013-04-08 Thread KONRAD Frédéric
On 08/04/2013 19:16, Peter Maydell wrote: On 8 April 2013 18:14, KONRAD Frédéric wrote: On 08/04/2013 19:03, Peter Maydell wrote: You specifically don't want to change the register_savevm name, because otherwise you'll break migration (we use the ID string to identify what incoming migration d

Re: [Qemu-devel] [PATCH] main-loop: drop the BQL if the I/O appears to be spinning

2013-04-08 Thread Anthony Liguori
Applied. Thanks. Regards, Anthony Liguori

Re: [Qemu-devel] [PATCH v3 0/2] configure: fix coroutine backend selection logic

2013-04-08 Thread Anthony Liguori
Applied. Thanks. Regards, Anthony Liguori

Re: [Qemu-devel] [PATCH v2] qemu-char: eliminate busy waiting on can_read returning zero

2013-04-08 Thread Anthony Liguori
Applied. Thanks. Regards, Anthony Liguori

Re: [Qemu-devel] [PATCH] qemu-char: really fix behavior on can_read = 0

2013-04-08 Thread Anthony Liguori
Applied. Thanks. Regards, Anthony Liguori

Re: [Qemu-devel] [PULL] hw/ reorganization part 2

2013-04-08 Thread Anthony Liguori
Pulled. Thanks. Regards, Anthony Liguori

[Qemu-devel] [PATCH] Update Makefile to actually install the new efi-enabled nic roms that are used by default.

2013-04-08 Thread Sander Eikelenboom
Commit c45e5b5b30ac1f5505725a7b36e68cedfce4f01f made a switch use the efi-enabled nic roms by default. This patch updates the Makefile to install the roms so they can actually be used. Signed-off-by: Sander Eikelenboom --- Makefile |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) d

[Qemu-devel] Can't install Win8 x64 using q35 - need PCIe support

2013-04-08 Thread Robert Randall
I've been working for a few days now trying to convince Windows 8 to install on the q35 machine type. The work I'm doing needs PCIe and I believe that is the only PC machine type that includes PCIe end points. Here is what happens: 1) Windows Startup runs fine from the ISO install image. 2) Wind

[Qemu-devel] [PATCH] New cpu-max field in query-machines QMP command output

2013-04-08 Thread Michal Novotny
This alters the query-machines QMP command to output information about maximum number of CPUs for each machine type with default value 1 in case the number of max_cpus is not set. Signed-off-by: Michal Novotny --- qapi-schema.json | 2 +- vl.c | 1 + 2 files changed, 2 insertions(+),

Re: [Qemu-devel] [PATCH] linux-user: pass correct host flags to eventfd2 call

2013-04-08 Thread Peter Maydell
On 8 April 2013 19:26, Petar Jovanovic wrote: > This change makes conversion of TARGET_O_NONBLOCK and TARGET_O_CLOEXEC flags > to host flags before calling eventfd for TARGET_NR_eventfd2. > > Signed-off-by: Petar Jovanovic > --- > linux-user/syscall.c | 11 ++- > 1 file changed, 10 ins

Re: [Qemu-devel] [PATCH v4] block: Add support for Secure Shell (ssh) block device.

2013-04-08 Thread Stefan Hajnoczi
On Mon, Apr 8, 2013 at 4:58 PM, Stefan Hajnoczi wrote: > On Mon, Apr 8, 2013 at 3:05 PM, Richard W.M. Jones wrote: > From what I can see libssh2 does not support loading .ssh/config. I was told that sshfs *does* handle .ssh/config. Turns out that sshfs spawns "ssh -s sftp" to get a SFTP subsyst

Re: [Qemu-devel] [PATCH v4 00/11] Fix versatile_pci

2013-04-08 Thread Peter Maydell
On 8 April 2013 18:37, Rob Landley wrote: > On 04/06/2013 10:44:25 AM, Peter Maydell wrote: >> >> This patch series fixes a number of serious bugs in our emulation of >> the PCI controller found on VersatilePB and the early Realview boards: >> * our interrupt mapping was totally wrong > > > Yes.

Re: [Qemu-devel] [PATCH 06/22] cpu: introduce CPUClass.resume() method

2013-04-08 Thread Eduardo Habkost
On Fri, Apr 05, 2013 at 04:36:58PM +0200, Igor Mammedov wrote: > ... and call it if defined from CPUClass.realize() if CPU was hotplugged > > by default leave .resume() unset (i.e. NULL) and override it for softmmu > in qemu_init_vcpu() if it's still unset. > > Signed-off-by: Igor Mammedov [...]

[Qemu-devel] We've been accepted to Google Summer of Code 2013

2013-04-08 Thread Stefan Hajnoczi
Good news! QEMU.org has been accepted to Google Summer of Code 2013. This means students can begin considering our list of QEMU, kvm kernel module, and libvirt project ideas: http://qemu-project.org/Google_Summer_of_Code_2013 Student applications open April 22 at 19:00 UTC. You can already vie

Re: [Qemu-devel] [PATCH 05/22] cpu: call cpu_synchronize_post_init() from CPUClass.realize() if hotplugged

2013-04-08 Thread Eduardo Habkost
On Fri, Apr 05, 2013 at 04:36:57PM +0200, Igor Mammedov wrote: > ... to synchronize CPU state to KVM > > * in addition link kvm-stub.o to *-user target and fix related compiling > issues. > > Signed-off-by: Igor Mammedov > --- > Makefile.target | 6 ++ > include/sysemu/kvm.h | 22 +++

Re: [Qemu-devel] [PATCH 0/2 v3] [S390-KVM] Regsync: Allow selective runtime register synchronization

2013-04-08 Thread Jason J. Herne
On 03/11/2013 01:58 PM, Jason J. Herne wrote: Selective KVm Register synchronization work for S390. This is re-work of the patch set submitted here: https://lists.nongnu.org/archive/html/qemu-devel/2013-01/msg01631.html The selective runtime register sync code has been made S390 specific. P

Re: [Qemu-devel] [PATCH 04/22] cpu: Pass CPUState to *cpu_synchronize_post*()

2013-04-08 Thread Eduardo Habkost
On Fri, Apr 05, 2013 at 04:36:56PM +0200, Igor Mammedov wrote: > ... so it could be called from without requiring CPUArchState > > Signed-off-by: Igor Mammedov Reviewed-by: Eduardo Habkost > --- > cpus.c | 4 ++-- > include/sysemu/kvm.h | 12 ++-- > kvm-all.c

[Qemu-devel] [PATCH 0/1 V6] VMWare PVSCSI paravirtual device implementation

2013-04-08 Thread Dmitry Fleytman
Below is the implementation of VMWare PVSCSI device PVSCSI implementation is based on Paolo Bonzini code sumbitted some time ago but never applied. See commit messages and file headers for details. This patch contains changes made by Deep Debroy, see here: http://lists.gnu.org/archive/html/qemu-d

Re: [Qemu-devel] [PATCH 03/22] target-i386: split out CPU creation and features parsing into cpu_x86_create()

2013-04-08 Thread Eduardo Habkost
On Fri, Apr 05, 2013 at 04:36:55PM +0200, Igor Mammedov wrote: > Move CPU creation and features parsing into a separate cpu_x86_create() > function, so that board would be able to set board specific CPU > properties before CPU is realized. > > Keep cpu_x86_init() for compatibility with the code th

Re: [Qemu-devel] [PATCH] linux-user: change do_semop to return target errno when unsuccessful

2013-04-08 Thread Petar Jovanovic
ping From: Petar Jovanovic Sent: Monday, April 01, 2013 7:07 PM To: Peter Maydell; Petar Jovanovic Cc: qemu-devel@nongnu.org; riku.voi...@linaro.org Subject: RE: [Qemu-devel] [PATCH] linux-user: change do_semop to return target errno when unsuccessful ping

[Qemu-devel] [PATCH] linux-user: pass correct host flags to eventfd2 call

2013-04-08 Thread Petar Jovanovic
This change makes conversion of TARGET_O_NONBLOCK and TARGET_O_CLOEXEC flags to host flags before calling eventfd for TARGET_NR_eventfd2. Signed-off-by: Petar Jovanovic --- linux-user/syscall.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/linux-user/syscall.c

Re: [Qemu-devel] [PATCH 02/22] target-i386: split APIC creation from initialization in x86_cpu_realizefn()

2013-04-08 Thread Eduardo Habkost
On Fri, Apr 05, 2013 at 04:36:54PM +0200, Igor Mammedov wrote: > When APIC is hotplugged during CPU hotplug, device_set_realized() > calls device_reset() on it. And if QEMU runs in KVM mode, following > call chain will fail: > apic_reset_common() > -> kvm_apic_vapic_base_update() >

Re: [Qemu-devel] [PATCH v4 00/11] Fix versatile_pci

2013-04-08 Thread Rob Landley
On 04/06/2013 10:44:25 AM, Peter Maydell wrote: This patch series fixes a number of serious bugs in our emulation of the PCI controller found on VersatilePB and the early Realview boards: * our interrupt mapping was totally wrong Yes. Yes it was. However, what you were doing matched the kernel

Re: [Qemu-devel] [PATCH 3/3] PPC PReP: can run without bios image

2013-04-08 Thread Scott Wood
On 04/06/2013 04:01:32 AM, Alexander Graf wrote: Am 06.04.2013 um 01:00 schrieb Scott Wood : > On 04/04/2013 06:59:24 AM, Alexander Graf wrote: >> On 04.04.2013, at 13:53, Andreas Färber wrote: >> > For PReP, Fabien has not stated what his use case actually is (in >> > particular which hardwar

Re: [Qemu-devel] [PATCH v5 0/7] virtio-serial refactoring.

2013-04-08 Thread Peter Maydell
On 8 April 2013 18:14, KONRAD Frédéric wrote: > On 08/04/2013 19:03, Peter Maydell wrote: >> You specifically don't want to change the register_savevm name, >> because otherwise you'll break migration (we use the ID string >> to identify what incoming migration data is). > Ok, you mean migration

Re: [Qemu-devel] [PATCH v2] New cpu-max field in query-machines QMP command output

2013-04-08 Thread Eric Blake
On 04/08/2013 10:41 AM, Michal Novotny wrote: > Alter the query-machines QMP command to output information about > maximum number of CPUs for each machine type with default value > set to 1 in case the number of max_cpus is not set. > > Signed-off-by: Michal Novotny > --- > qapi-schema.json | 4

Re: [Qemu-devel] [PATCH v5 0/7] virtio-serial refactoring.

2013-04-08 Thread KONRAD Frédéric
On 08/04/2013 19:03, Peter Maydell wrote: On 8 April 2013 18:00, KONRAD Frédéric wrote: I'm making a patch for that, and I'm wondering if the name in register_savevm must be changed too? eg for virtio-balloon: -register_savevm(qdev, "virtio-balloon", -1, 1, +register_savevm(qdev, TYPE

Re: [Qemu-devel] [PATCH v5 0/7] virtio-serial refactoring.

2013-04-08 Thread Peter Maydell
On 8 April 2013 18:00, KONRAD Frédéric wrote: > I'm making a patch for that, and I'm wondering if the name in > register_savevm must be changed too? > > eg for virtio-balloon: > > -register_savevm(qdev, "virtio-balloon", -1, 1, > +register_savevm(qdev, TYPE_VIRTIO_BALLOON, -1, 1, >

Re: [Qemu-devel] [PATCH uq/master v2 1/2] kvm: reset state from the CPU's reset method

2013-04-08 Thread Gleb Natapov
On Mon, Apr 08, 2013 at 04:36:47PM +0200, Andreas Färber wrote: > Am 08.04.2013 14:19, schrieb Gleb Natapov: > > On Tue, Apr 02, 2013 at 04:29:32PM +0300, Gleb Natapov wrote: > >>> static void kvm_sw_tlb_put(PowerPCCPU *cpu) > >>> { > >>> CPUPPCState *env = &cpu->env; > >>> diff --git a/targ

Re: [Qemu-devel] [PATCH v5 0/7] virtio-serial refactoring.

2013-04-08 Thread KONRAD Frédéric
On 05/04/2013 17:36, Anthony Liguori wrote: fred.kon...@greensocs.com writes: From: KONRAD Frederic This is the next part of virtio-refactoring. Basically it creates virtio-serial device which extends virtio-device. Then a virtio-serial can be connected on a virtio-bus. virtio-serial-pci, vi

Re: [Qemu-devel] virtio-scsi WRITE_VERIFY crash

2013-04-08 Thread Paolo Bonzini
Il 08/04/2013 17:53, Stefan Hajnoczi ha scritto: > On Fri, Apr 05, 2013 at 11:30:00AM -0700, Venkatesh Srinivas wrote: >> When a Linux guest does a simple 'sg_verify /dev/> virtio-scsi HBA>', qemu (-master from git) crashes, tripping an >> assertion in scsi-disk.c:scsi_dma_complete(), that the comp

[Qemu-devel] [FYI] Offline from Wednesday-Sunday, upcoming Soft Freeze for 1.5

2013-04-08 Thread Anthony Liguori
Hi, I'm going to be offline from Wednesday, April 10th until Sunday, April 14th. I will continue to apply pull requests and patches tomorrow and then will catch up again on Monday when I get back. Monday is the soft freeze date so please make sure to get important changes for 1.5 on the list bef

[Qemu-devel] [PATCH v2] New cpu-max field in query-machines QMP command output

2013-04-08 Thread Michal Novotny
Alter the query-machines QMP command to output information about maximum number of CPUs for each machine type with default value set to 1 in case the number of max_cpus is not set. Signed-off-by: Michal Novotny --- qapi-schema.json | 4 +++- vl.c | 1 + 2 files changed, 4 insertions(

[Qemu-devel] [PATCH] Typo, spelling and grammatical fixes

2013-04-08 Thread Peter Maydell
Minor fixes to documentation and code comments, including a set of lets-vs-let's corrections. Signed-off-by: Peter Maydell --- docs/bootindex.txt | 10 +- docs/ccid.txt |2 +- hw/armv7m_nvic.c |2 +- hw/s390x/s390-virtio-ccw.c |2 +- hw/s390x/

[Qemu-devel] Fwd: [PATCH v2] New cpu-max field in query-machines QMP command output

2013-04-08 Thread Michal Novotny
Alter the query-machines QMP command to output information about maximum number of CPUs for each machine type with default value set to 1 in case the number of max_cpus is not set. Signed-off-by: Michal Novotny --- qapi-schema.json | 4 +++- vl.c | 1 + 2 files changed, 4 insertions

Re: [Qemu-devel] virtio-scsi WRITE_VERIFY crash

2013-04-08 Thread ronnie sahlberg
I dont think QEMU scsi emulation supports WRITE_VERIFY. In the past there was a few instances where the code in the SCSI emulation that determines the transfer direction, based on the opcode, did not contain a new opcode, so it got the xfer direction wrong and crashed. I dont have access to my b

Re: [Qemu-devel] [PATCH] New cpu-max field in query-machines QMP command output

2013-04-08 Thread Michal Novotny
On 04/08/2013 06:18 PM, Igor Mammedov wrote: > On Mon, 8 Apr 2013 10:02:59 -0400 > Luiz Capitulino wrote: > >> On Mon, 8 Apr 2013 12:00:35 +0200 >> Michal Novotny wrote: >> >>> This alters the query-machines QMP command to output information >>> about maximum number of CPUs for each machine typ

Re: [Qemu-devel] [PATCH 0/4] block: Vectored bdrv_writev_vmstate

2013-04-08 Thread Paolo Bonzini
Il 08/04/2013 18:03, Stefan Hajnoczi ha scritto: > Looks fine on the block side. Perhaps Orit, Juan, or Paolo can > double-check the migration side. > > Reviewed-by: Stefan Hajnoczi Looks good, but given there are patches to fix it, I'm not sure it's worth the trouble... Paolo

Re: [Qemu-devel] [PATCH] New cpu-max field in query-machines QMP command output

2013-04-08 Thread Igor Mammedov
On Mon, 8 Apr 2013 10:02:59 -0400 Luiz Capitulino wrote: > On Mon, 8 Apr 2013 12:00:35 +0200 > Michal Novotny wrote: > > > This alters the query-machines QMP command to output information > > about maximum number of CPUs for each machine type with default > > value 1 in case the number of max_

Re: [Qemu-devel] [PATCH] target-moxie: Fix VMState registration

2013-04-08 Thread Andreas Färber
Am 08.04.2013 17:51, schrieb Peter Maydell: > Register the CPU VMState in the correct way, via cpu_class_set_vmsd(), > rather than doing it in two different wrong ways (once by providing > cpu_save and cpu_load functions, and once by setting the vmsd field in > DeviceClass). > > Signed-off-by: Pet

Re: [Qemu-devel] Virtualbox svga card in KVM

2013-04-08 Thread Sriram Murthy
The Virtualbox SVGA card was derived out of the KVM VGA card, so there are quite a few similarities (I am deliberately being vague here as I am still in the process of discovering the features of both these cards completely). Having said that, the APIs and the data structures themselves have bee

Re: [Qemu-devel] [PATCH 0/4] block: Vectored bdrv_writev_vmstate

2013-04-08 Thread Stefan Hajnoczi
On Fri, Apr 05, 2013 at 09:27:52PM +0200, Kevin Wolf wrote: > This gives us back reasonable savevm performance, which regressed in > commit 500f0061. > > Kevin Wolf (4): > block: Introduce bdrv_writev_vmstate > savevm: Implement block_writev_buffer() > block: Introduce bdrv_pwritev() for qco

Re: [Qemu-devel] virtio-scsi WRITE_VERIFY crash

2013-04-08 Thread Stefan Hajnoczi
On Fri, Apr 05, 2013 at 11:30:00AM -0700, Venkatesh Srinivas wrote: > When a Linux guest does a simple 'sg_verify /dev/ virtio-scsi HBA>', qemu (-master from git) crashes, tripping an > assertion in scsi-disk.c:scsi_dma_complete(), that the completing DMA > command has no IOCB. > > The callpath is

[Qemu-devel] [PATCH] target-moxie: Fix VMState registration

2013-04-08 Thread Peter Maydell
Register the CPU VMState in the correct way, via cpu_class_set_vmsd(), rather than doing it in two different wrong ways (once by providing cpu_save and cpu_load functions, and once by setting the vmsd field in DeviceClass). Signed-off-by: Peter Maydell --- Having just revamped the target-arm vmst

Re: [Qemu-devel] [PATCH uq/master v2 0/2] Add some tracepoints for clarification of the cause of troubles

2013-04-08 Thread Stefan Hajnoczi
On Fri, Mar 29, 2013 at 01:24:25PM +0900, Kazuya Saito wrote: > This series adds tracepoints for helping us clarify the cause of > troubles. Virtualization on Linux is composed of some components such > as qemu, kvm, libvirt, and so on. So it is very important to clarify > firstly and swiftly the c

[Qemu-devel] [PATCH v2 2/2] vmxnet3: const_cpu_to_le64 wrapping for feature bits dropped

2013-04-08 Thread Stefan Hajnoczi
From: Dmitry Fleytman Byte swap is redundant because shared memory reading functions already swap bytes when required Signed-off-by: Dmitry Fleytman Acked-by: Alexander Graf Signed-off-by: Stefan Hajnoczi --- hw/vmxnet3.h | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) dif

[Qemu-devel] [PATCH v2 1/2] vmxnet3: iPXE compatibility fixes

2013-04-08 Thread Stefan Hajnoczi
From: Dmitry Fleytman iPXE vmxnet3 driver makes a few assumptions regarding device operation that were missed during testing with Linux and Windows drivers. This patch adds following logic: 1. Additional GET commands processing added 2. Max number of RX chunks should be set to 1 when driver p

[Qemu-devel] [PULL v2 0/2] Net patches

2013-04-08 Thread Stefan Hajnoczi
v2: * Include git-request-pull(1) output [aliguori] This pull request fixes the vmxnet3 big-endian host build failure and allows iPXE to netboot on vmxnet3. The following changes since commit 9196dd411d580c27f85daa209ff9a501d719ebc0: Merge branch 'arm-devs.next' of git://git.linaro.org/people

Re: [Qemu-devel] [RFC PATCH 2/3] sheepdog: pass NULL for io_flush

2013-04-08 Thread Kevin Wolf
Am 08.04.2013 um 17:31 hat Stefan Hajnoczi geschrieben: > On Tue, Apr 02, 2013 at 10:37:24AM +0200, Kevin Wolf wrote: > > Am 28.03.2013 um 22:52 hat Anthony Liguori geschrieben: > > > Signed-off-by: Anthony Liguori > > > --- > > > block/sheepdog.c | 11 ++- > > > 1 file changed, 2 inserti

Re: [Qemu-devel] [RFC PATCH 2/3] sheepdog: pass NULL for io_flush

2013-04-08 Thread Stefan Hajnoczi
On Tue, Apr 02, 2013 at 10:37:24AM +0200, Kevin Wolf wrote: > Am 28.03.2013 um 22:52 hat Anthony Liguori geschrieben: > > Signed-off-by: Anthony Liguori > > --- > > block/sheepdog.c | 11 ++- > > 1 file changed, 2 insertions(+), 9 deletions(-) > > > > diff --git a/block/sheepdog.c b/bloc

Re: [Qemu-devel] [RFC PATCH 1/3] aio-context: if io_flush isn't provided, assume "always busy"

2013-04-08 Thread Stefan Hajnoczi
On Fri, Mar 29, 2013 at 12:37:18AM +0100, Paolo Bonzini wrote: > Il 28/03/2013 22:52, Anthony Liguori ha scritto: > > Today, all callers of qemu_aio_set_fd_handler() pass a valid io_flush > > function. > > Except one: > > aio_set_event_notifier(ctx, &ctx->notifier, >

[Qemu-devel] [PATCH 3/3] target-arm: Correctly restore FPSCR

2013-04-08 Thread Peter Maydell
Use the helper functions to save and restore the FPSCR, so that we correctly propagate rounding mode and flushing behaviour into the float_status fields. This also allows us to stop saving the vector length/stride fields separately. Signed-off-by: Peter Maydell --- target-arm/machine.c | 48 ++

[Qemu-devel] [PATCH 1/3] target-arm: port ARM CPU save/load to use VMState

2013-04-08 Thread Peter Maydell
From: Juan Quintela Port the ARM CPU save/load code to use VMState. Some state is saved in a slightly different order to simplify things -- for example arrays are saved one after the other rather than 'striped', and we always save all 32 VFP registers even if the CPU happens to only have 16. Use

[Qemu-devel] [PATCH 2/3] target-arm: Add some missing CPU state fields to VMState

2013-04-08 Thread Peter Maydell
A number of CPU state fields were accidentally omitted from our migration state: some OMAP specific cp15 registers, and some related to state for load/store exclusive insns. Add them. Signed-off-by: Peter Maydell --- target-arm/machine.c | 13 ++--- 1 file changed, 10 insertions(+), 3

Re: [Qemu-devel] Virtualbox svga card in KVM

2013-04-08 Thread Peter Maydell
On 6 April 2013 00:52, Sriram Murthy wrote: > (actually, the virtualbox SVGA card is based off of the KVM VGA card) Is it possible to implement it as an extension to the VGA card device, or has it diverged incompatibly such that it has to be its own separate device model? thanks -- PMM

Re: [Qemu-devel] Virtualbox svga card in KVM

2013-04-08 Thread Sriram Murthy
By "richer display", I meant support for different resolution and color depth (including support for nonstandard resolutions as well). -Sriram - Original Message - From: Stefan Hajnoczi To: Sriram Murthy Cc: "k...@vger.kernel.org" ; qemu list Sent: Monday, April 8, 2013 3:46 AM Sub

Re: [Qemu-devel] [PATCH v4] block: Add support for Secure Shell (ssh) block device.

2013-04-08 Thread Stefan Hajnoczi
On Mon, Apr 8, 2013 at 3:05 PM, Richard W.M. Jones wrote: > More specifically, here's the output on my machine: > > rjones@choo:~/d/qemu/tests/qemu-iotests$ > QEMU_PROG=~/d/qemu/x86_64-softmmu/qemu-system-x86_64 PATH=~/d/qemu:$PATH > ./check -ssh gah, I just hit a libssh2 limitation. In my .ss

Re: [Qemu-devel] [PATCH] migration: initialize RAM to zero

2013-04-08 Thread Peter Lieven
Am 08.04.2013 um 12:47 schrieb Paolo Bonzini : > Using qemu_memalign only leaves the RAM zero by chance, because libc > will usually use mmap to satisfy our huge requests. But memory will > not be zero when using MALLOC_PERTURB_ with a nonzero value. In the > case of incoming migration, this br

[Qemu-devel] [PATCH 0/3] target-arm: convert to VMState, fix bugs

2013-04-08 Thread Peter Maydell
This patch series converts target-arm to doing migration via a VMState structure, and fixes some minor bugs in migration of the CPU as well. The bulk of it is a patch Juan sent out back in the middle of last year https://lists.gnu.org/archive/html/qemu-devel/2012-05/msg00550.html which I have reba

Re: [Qemu-devel] [PATCH v7 1/2] block: Add support for Secure Shell (ssh) block device.

2013-04-08 Thread Stefan Hajnoczi
On Fri, Apr 05, 2013 at 02:07:52PM +0100, Richard W.M. Jones wrote: > +/* DEBUG_SSH=1 enables the DPRINTF (debugging printf) statements in > + * this block driver code. > + * > + * TRACE_LIBSSH2= enables tracing in libssh2 itself. Note > + * that this requires that libssh2 was specially compiled w

Re: [Qemu-devel] [PATCH uq/master v2 1/2] kvm: reset state from the CPU's reset method

2013-04-08 Thread Andreas Färber
Am 08.04.2013 14:19, schrieb Gleb Natapov: > On Tue, Apr 02, 2013 at 04:29:32PM +0300, Gleb Natapov wrote: >>> static void kvm_sw_tlb_put(PowerPCCPU *cpu) >>> { >>> CPUPPCState *env = &cpu->env; >>> diff --git a/target-s390x/cpu.c b/target-s390x/cpu.c >>> index 23fe51f..6321384 100644 >>> --

Re: [Qemu-devel] [PATCH] qemu-iotests: Add test for -drive options

2013-04-08 Thread Stefan Hajnoczi
On Wed, Apr 03, 2013 at 05:25:06PM +0200, Kevin Wolf wrote: > Signed-off-by: Kevin Wolf > --- > tests/qemu-iotests/051 | 143 +++ > tests/qemu-iotests/051.out | 162 > + > tests/qemu-iotests/group | 1 + > 3

Re: [Qemu-devel] [PATCH] vga.c: move debug printfs to trace events

2013-04-08 Thread Stefan Hajnoczi
On Wed, Apr 03, 2013 at 12:25:03PM +0300, Alex DAMIAN wrote: > @@ -390,9 +386,7 @@ uint32_t vga_ioport_read(void *opaque, uint32_t addr) > break; > case VGA_SEQ_D: > val = s->sr[s->sr_index]; > -#ifdef DEBUG_VGA_REG > -printf("vga: read SR%x = 0x%02x\n

Re: [Qemu-devel] [PATCH] New cpu-max field in query-machines QMP command output

2013-04-08 Thread Michal Novotny
Just for clarification why I did this: Some of the libvirt guys would like the functionality to know number of CPUs supported per machine type. This usually doesn't matter on x86 architectures however it matters on ARM, for example, because highbank machine type supports up to 4 CPUs however integr

Re: [Qemu-devel] [PATCH 0/2] New trace backend: ftrace

2013-04-08 Thread Stefan Hajnoczi
On Wed, Apr 03, 2013 at 03:30:57PM +0900, Eiichi Tsukata wrote: > This patchset introduces a new tracing backend "ftrace". > > Currently, QEMU tracing backends do not support userspace tracing with ftrace. > Collecting QEMU trace data and kernel trace data simultaniouly is useful for > latency ana

Re: [Qemu-devel] [PATCH 1/2] trace: Add ftrace tracing backend

2013-04-08 Thread Stefan Hajnoczi
On Wed, Apr 03, 2013 at 03:30:58PM +0900, Eiichi Tsukata wrote: > diff --git a/scripts/tracetool/backend/ftrace.py > b/scripts/tracetool/backend/ftrace.py > new file mode 100644 > index 000..e02f0ca > --- /dev/null > +++ b/scripts/tracetool/backend/ftrace.py > @@ -0,0 +1,53 @@ > +#!/usr/bin/en

Re: [Qemu-devel] [PATCH] qemu-char: really fix behavior on can_read = 0

2013-04-08 Thread Paolo Bonzini
Il 08/04/2013 16:08, Hans de Goede ha scritto: > >> I misread the glib manual, g_source_remove does not let you re-attach >> the source later. This behavior (called "blocking" the source in glib) >> is present in glib's source code, but private and not available outside >> glib; > > Hmm, have yo

Re: [Qemu-devel] After executing "savevm", the QEMU process is hanging

2013-04-08 Thread Orit Wasserman
Hi, Paolo send a patch series today fixing a problem with savevm http://www.mail-archive.com/qemu-devel@nongnu.org/msg165135.html Can you check if it solves the issue? Regards, Orit On 04/08/2013 04:39 PM, Liuji (Jeremy) wrote: > Hi, Stefan > > Thanks for your reply. > > I have test the latest

Re: [Qemu-devel] [PATCH] qemu-char: really fix behavior on can_read = 0

2013-04-08 Thread Hans de Goede
Paolo Bonzini writes: I misread the glib manual, g_source_remove does not let you re-attach the source later. This behavior (called "blocking" the source in glib) is present in glib's source code, but private and not available outside glib; Hmm, have you filed a bug upstream asking them to m

Re: [Qemu-devel] [PATCH] New cpu-max field in query-machines QMP command output

2013-04-08 Thread Luiz Capitulino
On Mon, 8 Apr 2013 12:00:35 +0200 Michal Novotny wrote: > This alters the query-machines QMP command to output information > about maximum number of CPUs for each machine type with default > value 1 in case the number of max_cpus is not set. > > Signed-off-by: Michal Novotny > --- > qapi-sche

  1   2   >