[Qemu-devel] [PATCH 2/3] bsd-user: add HOST_VARIANT_DIR for various *BSD dependent code

2014-06-05 Thread Sean Bruno
From: Stacey Son s...@freebsd.org This change adds HOST_VARIANT_DIR so the various BSD OS dependent code can be seperated into its own directories rather than using #ifdef's. This may also allow an BSD variant OS to host another BSD variant's executible as a target. Signed-off-by: Stacey Son

Re: [Qemu-devel] [RFC 0/2] GET_EMULATED_CPUID support with allow-emulation option

2014-06-05 Thread Eduardo Habkost
On Thu, Jun 05, 2014 at 06:58:17PM +0200, Alexander Graf wrote: On 05.06.14 18:52, Paolo Bonzini wrote: Il 05/06/2014 18:45, Alexander Graf ha scritto: Only if you were using -cpu somethingThatHasAVX, though, no? Yes. The same argument goes the other way around. I want to use AVX

Re: [Qemu-devel] [RFC 0/2] GET_EMULATED_CPUID support with allow-emulation option

2014-06-05 Thread Eduardo Habkost
On Thu, Jun 05, 2014 at 07:38:49PM +0200, Paolo Bonzini wrote: Il 05/06/2014 19:17, Eduardo Habkost ha scritto: If you don't want MONITOR/MWAIT you shouldn't be using a CPU model containing MONITOR/MWAIT in the first place. If you use -cpu somethingWithMONITOR, that means you are already

Re: [Qemu-devel] [RFC 0/2] GET_EMULATED_CPUID support with allow-emulation option

2014-06-05 Thread Eduardo Habkost
On Thu, Jun 05, 2014 at 06:45:16PM +0200, Alexander Graf wrote: On 05.06.14 18:44, Paolo Bonzini wrote: Il 05/06/2014 18:40, Alexander Graf ha scritto: kvm_set_cpuid(cpuid); but enabling all experimental features inside KVM just because we want one or two of them is very

[Qemu-devel] [PULL 08/10] tests: add smbios testing

2014-06-05 Thread Michael S. Tsirkin
From: Gabriel L. Somlo gso...@gmail.com Add tests to find and verify the smbios entry point structure, and to walk and perform checks on the actual smbios tables. Suggested-by: Michael S. Tsirkin m...@redhat.com Signed-off-by: Gabriel Somlo so...@cmu.edu Reviewed-by: Michael S. Tsirkin

[Qemu-devel] [PATCH 3/3] bsd-user: move strace OS/arch dependent code to host/arch dirs

2014-06-05 Thread Sean Bruno
From: Stacey Son s...@freebsd.org This change moves host OS and arch dependent code for the sysarch system call related to the -strace functionality into the appropriate host OS and target arch directories. Signed-off-by: Stacey Son s...@freebsd.org Signed-off-by: Sean Bruno sbr...@freebsd.org

Re: [Qemu-devel] [RFC 0/2] GET_EMULATED_CPUID support with allow-emulation option

2014-06-05 Thread Eduardo Habkost
On Thu, Jun 05, 2014 at 07:39:42PM +0200, Paolo Bonzini wrote: Il 05/06/2014 19:19, Eduardo Habkost ha scritto: On Thu, Jun 05, 2014 at 06:57:57PM +0200, Paolo Bonzini wrote: Il 05/06/2014 18:54, Alexander Graf ha scritto: What about: - letting -cpu foo,+emulatedfeature just work -

Re: [Qemu-devel] [RFC 0/2] GET_EMULATED_CPUID support with allow-emulation option

2014-06-05 Thread Eduardo Habkost
Sorry for following the discussion backwards, but I see now that you started with a proposal that would cover both cases (the one you care about, and the one I care about), make both of us happy, but it was lost in favour of other suggestions I disagreed with: On Thu, Jun 05, 2014 at 06:24:22PM

Re: [Qemu-devel] [PULL 0/7] input patch queue

2014-06-05 Thread Peter Maydell
On 4 June 2014 08:44, Gerd Hoffmann kra...@redhat.com wrote: Hi, This pull adds the keyboard delay support for the input layer and it updates the multiseat.txt doc file. please pull, Gerd The following changes since commit e00fcfeab3d452cba3d0a08991a39ab15df66424: Merge

Re: [Qemu-devel] [RFC 3/5] nbd: Use aio_set_fd_handler2()

2014-06-05 Thread Max Reitz
On 04.06.2014 14:37, Stefan Hajnoczi wrote: On Sat, May 31, 2014 at 08:43:10PM +0200, Max Reitz wrote: Instead of using the main loop function qemu_set_fd_handler2(), use the AIO function in the context of the exported BDS. Managing fd handlers shouldn't be necessary at the NBD code level.

Re: [Qemu-devel] [PATCH v8 3/4] VFIO: Introduce helper vfio_pci_container_ioctl()

2014-06-05 Thread Alex Williamson
On Thu, 2014-06-05 at 16:53 +1000, Gavin Shan wrote: The patch introduces helper function vfio_pci_container_ioctl() to pass ioctl commands to the specified VFIO container that is identified by IOMMU group id. On sPAPR platform, each container only has one IOMMU group. Signed-off-by: Gavin

Re: [Qemu-devel] [PATCH v8 0/4] EEH Support for VFIO PCI Device

2014-06-05 Thread Alex Williamson
On Thu, 2014-06-05 at 14:12 +0200, Alexander Graf wrote: On 05.06.14 08:53, Gavin Shan wrote: The series of patches adds support EEH for VFIO PCI devices on sPAPR platform. It requires corresponding host kernel support. Also, it is based on top of Alexey's VFIO-for-sPAPR git repository.

Re: [Qemu-devel] [PULL 00/11] KVM changes for 2014-06-04

2014-06-05 Thread Peter Maydell
On 4 June 2014 12:20, Paolo Bonzini pbonz...@redhat.com wrote: The following changes since commit 1a381811b495651ddfc2b50d7c8cfaaf375816b0: Merge remote-tracking branch 'remotes/rth/tags/pull-tcg-s390-20140515' into staging (2014-05-15 18:56:08 +0100) are available in the git repository

Re: [Qemu-devel] [RFC PATCH 01/16] Visitor: Add methods for migration format use

2014-06-05 Thread Dr. David Alan Gilbert
* Dr. David Alan Gilbert (dgilb...@redhat.com) wrote: * Markus Armbruster (arm...@redhat.com) wrote: * Dr. David Alan Gilbert (dgilb...@redhat.com) wrote: snip Load/save flags to let a user perform pre-save/post-load checking Odd. I'd expect separate visitors, one for save, one for

Re: [Qemu-devel] [PATCH 0/3] FreeBSD-user, breakout the BSDs

2014-06-05 Thread Peter Maydell
On 5 June 2014 18:27, Sean Bruno sbr...@freebsd.org wrote: This is the first patch-set being pulled from current development of FreeBSD user mode code. This work is based on Stacey Son's developement work from Caimbridge. Refresh the syscalls for FreeBSD. This is a resend as I haven't seen

Re: [Qemu-devel] [PULL 00/118] ppc patch queue 2014-06-04

2014-06-05 Thread Peter Maydell
On 4 June 2014 13:43, Alexander Graf ag...@suse.de wrote: Hi Peter, This is my current patch queue for ppc. Please pull. Alex The following changes since commit e00fcfeab3d452cba3d0a08991a39ab15df66424: Merge remote-tracking branch

Re: [Qemu-devel] [RFC 0/2] GET_EMULATED_CPUID support with allow-emulation option

2014-06-05 Thread Eduardo Habkost
Sorry for replying to my own message, but I believe we can now summarize a possible solution that makes everybody happy, and the plans for it: On Thu, Jun 05, 2014 at 03:02:53PM -0300, Eduardo Habkost wrote: On Thu, Jun 05, 2014 at 07:39:42PM +0200, Paolo Bonzini wrote: Il 05/06/2014 19:19,

Re: [Qemu-devel] [RFC 0/2] GET_EMULATED_CPUID support with allow-emulation option

2014-06-05 Thread Borislav Petkov
On Thu, Jun 05, 2014 at 04:12:08PM -0300, Eduardo Habkost wrote: In the meantime, we could: * Include the less fine-tuned allow-emulation (or allow-experimental-features) option, which is implemented by this series, for people who use enforce and/or don't care too much about

Re: [Qemu-devel] [PATCH v7 2/4] vfio: Add vfio_container_spapr_get_info()

2014-06-05 Thread Alex Williamson
On Thu, 2014-06-05 at 15:49 +1000, Alexey Kardashevskiy wrote: To perform DMA mapping via TCE table correctly, the guest must know where DMA window is located on the PCI bus. A hypervisor is expected to provide such information. Since QEMU has no control over this setting, we need a way to

Re: [Qemu-devel] [PATCH v7 4/4] vfio: Enable for spapr

2014-06-05 Thread Alex Williamson
On Thu, 2014-06-05 at 15:50 +1000, Alexey Kardashevskiy wrote: This turns the sPAPR support on and enables VFIO container use in the kernel. This extends vfio_connect_container to support VFIO_SPAPR_TCE_IOMMU type in the host kernel. This registers a memory listener which sPAPR IOMMU will

[Qemu-devel] [PULL 0/1] qemu-ga fixes for win32

2014-06-05 Thread Michael Roth
The following changes since commit e00fcfeab3d452cba3d0a08991a39ab15df66424: Merge remote-tracking branch 'remotes/awilliam/tags/vfio-pci-for-qemu-20140602.0' into staging (2014-06-03 14:37:43 +0100) are available in the git repository at: git://github.com/mdroth/qemu.git

[Qemu-devel] [PATCH] qga: Fix handle fd leak in acquire_privilege()

2014-06-05 Thread Michael Roth
From: Gonglei arei.gong...@huawei.com token should be closed in all conditions. So move CloseHandle(token) to out branch. Signed-off-by: Wang Rui moon.wang...@huawei.com Signed-off-by: Gonglei arei.gong...@huawei.com Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- qga/commands-win32.c

Re: [Qemu-devel] [RFC 0/2] GET_EMULATED_CPUID support with allow-emulation option

2014-06-05 Thread Eric Blake
On 06/05/2014 01:24 PM, Borislav Petkov wrote: On Thu, Jun 05, 2014 at 04:12:08PM -0300, Eduardo Habkost wrote: In the meantime, we could: * Include the less fine-tuned allow-emulation (or allow-experimental-features) option, which is implemented by this series, for people who use

Re: [Qemu-devel] [RFC 0/2] GET_EMULATED_CPUID support with allow-emulation option

2014-06-05 Thread Eduardo Habkost
On Thu, Jun 05, 2014 at 01:45:06PM -0600, Eric Blake wrote: On 06/05/2014 01:24 PM, Borislav Petkov wrote: On Thu, Jun 05, 2014 at 04:12:08PM -0300, Eduardo Habkost wrote: In the meantime, we could: * Include the less fine-tuned allow-emulation (or allow-experimental-features)

[Qemu-devel] [RFC 2/2 v2] target-i386: Add x-allow-emulation X86CPU property

2014-06-05 Thread Eduardo Habkost
The new option will allow slow emulated features (the ones returned by GET_EMULATED_CPUID) to be enabled. We don't want to allow them to be enabled by accident, so they will be enabled only if emulation is explicitly allowed by the user. Use x- prefix on the property name, to document that it is

Re: [Qemu-devel] [PULL 0/4] tcg patch queue

2014-06-05 Thread Peter Maydell
On 4 June 2014 22:15, Richard Henderson r...@twiddle.net wrote: TCG patches accumulated over the last 2 weeks. Please pull. r~ The following changes since commit e00fcfeab3d452cba3d0a08991a39ab15df66424: Merge remote-tracking branch

Re: [Qemu-devel] [PATCH 0/4] cg3/tcx cleanups

2014-06-05 Thread Mark Cave-Ayland
On 24/05/14 13:44, Mark Cave-Ayland wrote: This patchset primarily addresses Andreas' comments with regard to cg3 init/realize. The first patch addresses this, followed by a second patch to address a previous comment made by Paolo. The last two patches then alter tcx in a similar fashion to

Re: [Qemu-devel] [PATCH 0/4] apb: implement IOMMU for PCI host bridge (sun4u)

2014-06-05 Thread Mark Cave-Ayland
On 28/05/14 08:35, Mark Cave-Ayland wrote: This patchset implements IOMMU translation for the APB PCI host bridge as used by sun4u. With this patchset applied, my Debian squeeze/wheezy test images can now boot and start executing the installer (including CDROM and network access) in -nographic

[Qemu-devel] [PULL] qemu-sparc: SPARC32 and SPARC64 updates

2014-06-05 Thread Mark Cave-Ayland
Hi Peter, This branch contains updates for SPARC, particularly QOM fixes for CG3/TCX as requested by Andreas, an additional CG3 register boundary check requested by Paolo and my APB IOMMU implementation for SPARC64. Please pull. ATB, Mark. The following changes since commit

Re: [Qemu-devel] [PATCH] macio: Fix timer endianness

2014-06-05 Thread Mark Cave-Ayland
On 27/05/14 01:01, Alexander Graf wrote: The timer registers on our KeyLargo macio emulation are read as byte reversed from the big endian guest, so we better expose them endian reversed as well. This fixes initial hickups of booting Mac OS X with -M mac99 for me. Signed-off-by: Alexander

Re: [Qemu-devel] [PULL 00/33] softmmu cleanups and target-i386 paging fixes

2014-06-05 Thread Peter Maydell
On 5 June 2014 15:21, Paolo Bonzini pbonz...@redhat.com wrote: The following changes since commit e00fcfeab3d452cba3d0a08991a39ab15df66424: Merge remote-tracking branch 'remotes/awilliam/tags/vfio-pci-for-qemu-20140602.0' into staging (2014-06-03 14:37:43 +0100) are available in the git

Re: [Qemu-devel] [PATCH v4 05/33] add memdev backend infrastructure

2014-06-05 Thread Don Slutz
This change fails to pass make check for me: dcs-xen-54:~/qemu/outrm -rf *;../configure --enable-debug --disable-pie --enable-trace-backend=stderr;make -j8 make check make check-block echo ok ... GTESTER check-qtest-sh4eb GTESTER check-qtest-sparc Registering `memory' which already exists

Re: [Qemu-devel] [PULL 00/10] pc,pci,virtio,qdev fixes, tests

2014-06-05 Thread Peter Maydell
On 5 June 2014 18:17, Michael S. Tsirkin m...@redhat.com wrote: The following changes since commit c5fa6c86d0765f837515d1c10654c621724a77e0: Merge remote-tracking branch 'remotes/qmp-unstable/queue/qmp' into staging (2014-05-19 14:10:01 +0100) are available in the git repository at:

Re: [Qemu-devel] [PATCH v2] rbd: Fix leaks in rbd_start_aio() error path

2014-06-05 Thread Josh Durgin
On 06/05/2014 07:19 AM, Kevin Wolf wrote: Signed-off-by: Kevin Wolf kw...@redhat.com --- block/rbd.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/block/rbd.c b/block/rbd.c index 09af484..898fcfe 100644 --- a/block/rbd.c +++ b/block/rbd.c @@ -684,13 +684,16 @@ static

Re: [Qemu-devel] [PULL 0/1] qemu-ga fixes for win32

2014-06-05 Thread Peter Maydell
On 5 June 2014 20:41, Michael Roth mdr...@linux.vnet.ibm.com wrote: The following changes since commit e00fcfeab3d452cba3d0a08991a39ab15df66424: Merge remote-tracking branch 'remotes/awilliam/tags/vfio-pci-for-qemu-20140602.0' into staging (2014-06-03 14:37:43 +0100) are available in

Re: [Qemu-devel] [PATCH v27 19/33] QemuOpts: export qemu_opt_find

2014-06-05 Thread Eric Blake
On 05/07/2014 03:58 AM, Chunyan Liu wrote: Export qemu_opt_find for qcow2 driver using it. After replacing QEMUOptionParameter with QemuOpts, qcow2 driver will use qemu_opt_find to judge if an option is explicitly set, to replace the usage of .assigned in QEMUOptionParameter. Signed-off-by:

Re: [Qemu-devel] [PATCH v2 0/2] Restore kvm-type option support on -machine pseries

2014-06-05 Thread Alexander Graf
On 30.05.14 23:24, Eduardo Habkost wrote: Second try, now changing only the pseries machine code at hw/ppc/spapr.c. Thanks, applied to ppc-next. Alex

[Qemu-devel] [PATCH] vl.c: Check -smp option ranges before setting int globals

2014-06-05 Thread Eduardo Habkost
When parsing the -smp option, check if the values (that can be anywhere in the [0, UINT64_MAX] range) are in the int range before setting the int globals smp_cpus, max_cpus, smp_cores, smp_threads. Without this, it was posbible to make smp_cpus and max_cpus negative. Signed-off-by: Eduardo

Re: [Qemu-devel] [RFC 0/2] GET_EMULATED_CPUID support with allow-emulation option

2014-06-05 Thread Alexander Graf
On 05.06.14 19:48, Eduardo Habkost wrote: On Thu, Jun 05, 2014 at 06:58:17PM +0200, Alexander Graf wrote: On 05.06.14 18:52, Paolo Bonzini wrote: Il 05/06/2014 18:45, Alexander Graf ha scritto: Only if you were using -cpu somethingThatHasAVX, though, no? Yes. The same argument goes the

Re: [Qemu-devel] [PULL] qemu-sparc: SPARC32 and SPARC64 updates

2014-06-05 Thread Peter Maydell
On 5 June 2014 21:30, Mark Cave-Ayland mark.cave-ayl...@ilande.co.uk wrote: Hi Peter, This branch contains updates for SPARC, particularly QOM fixes for CG3/TCX as requested by Andreas, an additional CG3 register boundary check requested by Paolo and my APB IOMMU implementation for SPARC64.

Re: [Qemu-devel] [RFC 2/2 v2] target-i386: Add x-allow-emulation X86CPU property

2014-06-05 Thread Alexander Graf
On 05.06.14 21:57, Eduardo Habkost wrote: The new option will allow slow emulated features (the ones returned by GET_EMULATED_CPUID) to be enabled. We don't want to allow them to be enabled by accident, so they will be enabled only if emulation is explicitly allowed by the user. Use x- prefix

Re: [Qemu-devel] [PATCH v27 20/33] qcow2.c: replace QEMUOptionParameter with QemuOpts

2014-06-05 Thread Eric Blake
On 05/07/2014 03:58 AM, Chunyan Liu wrote: Signed-off-by: Dong Xu Wang wdon...@linux.vnet.ibm.com Signed-off-by: Chunyan Liu cy...@suse.com --- Changes: * remove exporting qemu_opt_find from qcow2 patch and commit separately. * remove unnecessary indention changes in bdrv_qcow2 as Eric

[Qemu-devel] [PATCH 0/9 v2] FreeBSD-user, breakout the BSDs

2014-06-05 Thread Sean Bruno
At the advice of Peter Maydell, break out these patches to inplement new syscalls into substantially smaller, bite sized chunks for review. These patches are based off a tree that Peter has kindly setup at: git://git.linaro.org/people/peter.maydell/qemu-arm.git bsd-user.next I've made clear

[Qemu-devel] [PATCH 2/9 v2] No functional changes. GPL v2 attribution update. Cleanup some while space and style fixes. Move struct syscallname into qemu.h

2014-06-05 Thread Sean Bruno
Signed-off-by: Sean Bruno sbr...@freebsd.org --- bsd-user/qemu.h | 26 +++ bsd-user/strace.c | 126 +- 2 files changed, 94 insertions(+), 58 deletions(-) diff --git a/bsd-user/qemu.h b/bsd-user/qemu.h index ddc74ed..b8a34c7 100644

[Qemu-devel] [PATCH 6/9 v2] Add __acl_* to the table of syscalls that are supported on FreeBSD

2014-06-05 Thread Sean Bruno
Signed-off-by: Sean Bruno sbr...@freebsd.org --- bsd-user/freebsd/strace.list | 12 1 file changed, 12 insertions(+) diff --git a/bsd-user/freebsd/strace.list b/bsd-user/freebsd/strace.list index 32b3c55..b09b130 100644 --- a/bsd-user/freebsd/strace.list +++

[Qemu-devel] [PATCH 3/9 v2] Add print_sysctl() to out table of syscalls that are supported.

2014-06-05 Thread Sean Bruno
Signed-off-by: Sean Bruno sbr...@freebsd.org --- bsd-user/freebsd/strace.list | 21 +++-- bsd-user/strace.c| 22 ++ 2 files changed, 41 insertions(+), 2 deletions(-) diff --git a/bsd-user/freebsd/strace.list b/bsd-user/freebsd/strace.list index

[Qemu-devel] [PATCH 5/9 v2] Add print_sysarch() to out table of syscalls that are supported and support them on all architectures for freebsd. netbsd and openbsd are not implemented but stubbed out.

2014-06-05 Thread Sean Bruno
Signed-off-by: Sean Bruno sbr...@freebsd.org --- bsd-user/arm/syscall.h | 36 bsd-user/arm/syscall.h.orig| 0 bsd-user/arm/target_arch_sysarch.h | 78 ++ bsd-user/freebsd/os-strace.h | 29 +

[Qemu-devel] [PATCH 4/9 v2] Add print_ioctl() to out table of syscalls that are supported.

2014-06-05 Thread Sean Bruno
Signed-off-by: Sean Bruno sbr...@freebsd.org --- bsd-user/freebsd/strace.list | 2 +- bsd-user/strace.c| 19 +++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/bsd-user/freebsd/strace.list b/bsd-user/freebsd/strace.list index 3235f16..718357b 100644

[Qemu-devel] [PATCH 7/9 v2] Add extattr_* to the table of syscalls that are supported on FreeBSD

2014-06-05 Thread Sean Bruno
Signed-off-by: Sean Bruno sbr...@freebsd.org --- bsd-user/freebsd/strace.list | 13 + 1 file changed, 13 insertions(+) diff --git a/bsd-user/freebsd/strace.list b/bsd-user/freebsd/strace.list index b09b130..ab52ca8 100644 --- a/bsd-user/freebsd/strace.list +++

[Qemu-devel] [PATCH 9/9 v2] Fix socket, fstat, fstatfs, chown syscalls. Add support for missing syscalls to the table on FreeBSD

2014-06-05 Thread Sean Bruno
Signed-off-by: Sean Bruno sbr...@freebsd.org --- bsd-user/freebsd/strace.list | 18 ++ 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/bsd-user/freebsd/strace.list b/bsd-user/freebsd/strace.list index b2a159e..61d11ca 100644 --- a/bsd-user/freebsd/strace.list +++

[Qemu-devel] [PATCH 1/9 v2] bsd-user: add HOST_VARIANT_DIR for various *BSD dependent code

2014-06-05 Thread Sean Bruno
From: Stacey Son s...@freebsd.org This change adds HOST_VARIANT_DIR so the various BSD OS dependent code can be seperated into its own directories rather than using #ifdef's. This may also allow an BSD variant OS to host another BSD variant's executible as a target. Signed-off-by: Stacey Son

[Qemu-devel] [PATCH 8/9 v2] Add thr_* to the table of syscalls that are supported on FreeBSD

2014-06-05 Thread Sean Bruno
Signed-off-by: Sean Bruno sbr...@freebsd.org --- bsd-user/freebsd/strace.list | 9 + 1 file changed, 9 insertions(+) diff --git a/bsd-user/freebsd/strace.list b/bsd-user/freebsd/strace.list index ab52ca8..b2a159e 100644 --- a/bsd-user/freebsd/strace.list +++

Re: [Qemu-devel] [PATCH 5/9 v2] Add print_sysarch() to out table of syscalls that are supported and support them on all architectures for freebsd. netbsd and openbsd are not implemented but stubbed ou

2014-06-05 Thread Eric Blake
On 06/05/2014 04:28 PM, Sean Bruno wrote: In the subject, s/out/our/ ? Please trim your subject lines to 60 characters or so; and also include a topic. If you have more information (and that is often the case), then include a blank line after the summary before providing it. Thus, your commit

Re: [Qemu-devel] [PATCH v7 1/4] spapr_iommu: Make in-kernel TCE table optional

2014-06-05 Thread Alexey Kardashevskiy
On 06/06/2014 02:51 AM, Alexander Graf wrote: On 05.06.14 16:33, Alexey Kardashevskiy wrote: On 06/05/2014 11:36 PM, Alexander Graf wrote: On 05.06.14 15:33, Alexey Kardashevskiy wrote: On 06/05/2014 11:15 PM, Alexander Graf wrote: On 05.06.14 15:10, Alexey Kardashevskiy wrote: On

[Qemu-devel] [PATCH] add command to position mouse pointer in absolute mode

2014-06-05 Thread Marcelo Tosatti
Add monitor command to change mouse cursor position when input device is in absolute mode. Signed-off-by: Marcelo Tosatti mtosa...@redhat.com --- hmp-commands.hx | 22 +++--- monitor.c | 35 ++- 2 files changed, 53 insertions(+), 4

Re: [Qemu-devel] [RFC PATCH 0/2] qom: custom link properties

2014-06-05 Thread Marcelo Tosatti
On Thu, Jun 05, 2014 at 01:23:53PM +0200, Paolo Bonzini wrote: Both Marcelo's rtc patches and Peter's MemoryRegion patches showed the interest in having link properties with a custom representation and/or a different way to store the property. Such properties would still be links for the

Re: [Qemu-devel] [PATCH v7 1/4] spapr_iommu: Make in-kernel TCE table optional

2014-06-05 Thread Alexander Graf
On 06.06.14 01:17, Alexey Kardashevskiy wrote: On 06/06/2014 02:51 AM, Alexander Graf wrote: On 05.06.14 16:33, Alexey Kardashevskiy wrote: On 06/05/2014 11:36 PM, Alexander Graf wrote: On 05.06.14 15:33, Alexey Kardashevskiy wrote: On 06/05/2014 11:15 PM, Alexander Graf wrote: On 05.06.14

Re: [Qemu-devel] [PATCH v7 4/4] vfio: Enable for spapr

2014-06-05 Thread Alexey Kardashevskiy
On 06/06/2014 05:31 AM, Alex Williamson wrote: On Thu, 2014-06-05 at 15:50 +1000, Alexey Kardashevskiy wrote: This turns the sPAPR support on and enables VFIO container use in the kernel. This extends vfio_connect_container to support VFIO_SPAPR_TCE_IOMMU type in the host kernel. This

Re: [Qemu-devel] [PATCH v7 2/4] vfio: Add vfio_container_spapr_get_info()

2014-06-05 Thread Alexey Kardashevskiy
On 06/06/2014 05:27 AM, Alex Williamson wrote: On Thu, 2014-06-05 at 15:49 +1000, Alexey Kardashevskiy wrote: To perform DMA mapping via TCE table correctly, the guest must know where DMA window is located on the PCI bus. A hypervisor is expected to provide such information. Since QEMU has no

Re: [Qemu-devel] [PATCH v7 1/4] spapr_iommu: Make in-kernel TCE table optional

2014-06-05 Thread Alexey Kardashevskiy
On 06/06/2014 09:36 AM, Alexander Graf wrote: On 06.06.14 01:17, Alexey Kardashevskiy wrote: On 06/06/2014 02:51 AM, Alexander Graf wrote: On 05.06.14 16:33, Alexey Kardashevskiy wrote: On 06/05/2014 11:36 PM, Alexander Graf wrote: On 05.06.14 15:33, Alexey Kardashevskiy wrote: On

[Qemu-devel] [Bug 1326986] [NEW] e1000 - no link detected by VXWorks based guest

2014-06-05 Thread Matthew Gamble
Public bug reported: I'm trying to get a VXWorks image running inside a qemu guest. I have the machine running, however, the vxworks image only has support for the 82544EI device so I had to change the device ID in e1000.c to get the device even recognized so I'm not sure if this is a bug or an

Re: [Qemu-devel] [PATCH v8 1/4] sPAPR: Implement EEH RTAS calls

2014-06-05 Thread Gavin Shan
On Thu, Jun 05, 2014 at 02:09:14PM +0200, Alexander Graf wrote: On 05.06.14 08:53, Gavin Shan wrote: The emulation for EEH RTAS requests from guest isn't covered by QEMU yet and the patch implements them. The patch defines constants used by EEH RTAS calls and adds callback

Re: [Qemu-devel] [PATCH v8 3/4] VFIO: Introduce helper vfio_pci_container_ioctl()

2014-06-05 Thread Gavin Shan
On Thu, Jun 05, 2014 at 02:11:21PM +0200, Alexander Graf wrote: On 05.06.14 08:53, Gavin Shan wrote: The patch introduces helper function vfio_pci_container_ioctl() to pass ioctl commands to the specified VFIO container that is identified by IOMMU group id. On sPAPR platform, each container only

Re: [Qemu-devel] [PATCH v8 3/4] VFIO: Introduce helper vfio_pci_container_ioctl()

2014-06-05 Thread Gavin Shan
On Thu, Jun 05, 2014 at 12:27:23PM -0600, Alex Williamson wrote: On Thu, 2014-06-05 at 16:53 +1000, Gavin Shan wrote: The patch introduces helper function vfio_pci_container_ioctl() to pass ioctl commands to the specified VFIO container that is identified by IOMMU group id. On sPAPR platform,

[Qemu-devel] [PATCH v3 3/4] virtio-blk-test.c: add hotplug subtest

2014-06-05 Thread Amos Kong
This patch adds a new subtest, it hotplugs 29 * 8 = 232 virtio-blk devices to guest, and try to hot-unplug them. Note: the hot-unplug can't work without cooperation of guest OS. Signed-off-by: Amos Kong ak...@redhat.com Reviewed-by: Stefan Hajnoczi stefa...@redhat.com ---

[Qemu-devel] [PATCH v3 1/4] virtio-blk-test.c: change pci_nop() to virtblk_init()

2014-06-05 Thread Amos Kong
I want to add a new subtest in virtio-blk-test.c, it will start guest without network. The original pci_init() did nothing, but it's good to reserve a very simple initialization testing. Signed-off-by: Amos Kong ak...@redhat.com --- tests/virtio-blk-test.c | 13 ++--- 1 file changed, 6

[Qemu-devel] [PATCH v3 0/4] test virtio-blk hotplug

2014-06-05 Thread Amos Kong
It's worth to add a hotplug test to qtest, but without cooperation of guest OS, new devices can't be initialized by guest, and hot-unplug doesn't work. However, the new test can cover some part of code of hotplug/unplug. I will write another subtest to test hotplug with pci support. V2: move

[Qemu-devel] [PATCH v3 4/4] qtest: use qmp_exec_hmp_cmd() in blockdev-test

2014-06-05 Thread Amos Kong
Signed-off-by: Amos Kong ak...@redhat.com Reviewed-by: Stefan Hajnoczi stefa...@redhat.com --- tests/blockdev-test.c | 23 ++- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/tests/blockdev-test.c b/tests/blockdev-test.c index c940e00..c9127c0 100644 ---

[Qemu-devel] [PATCH v3 2/4] qtest: introduce qmp_exec_hmp_cmd()

2014-06-05 Thread Amos Kong
This patch wraps a helper function to execute human command by one QMP command (human-monitor-command). It also checks the return string. Signed-off-by: Amos Kong ak...@redhat.com --- tests/libqtest.c | 26 ++ tests/libqtest.h | 9 + 2 files changed, 35

Re: [Qemu-devel] [RFC 0/2] GET_EMULATED_CPUID support with allow-emulation option

2014-06-05 Thread Borislav Petkov
On Fri, Jun 06, 2014 at 12:24:26AM +0200, Alexander Graf wrote: But can we drop the EMULATED name somehow? Can we rename [1] the ioctl to say GET_UNSUPPORTED_CPUID or something along those lines? The name is just a really really bad pick. What do you mean, a bad pick :-P? I added extra care in

Re: [Qemu-devel] [PATCH v3 3/4] virtio-blk-test.c: add hotplug subtest

2014-06-05 Thread Gonglei (Arei)
Hi, Amos -Original Message- From: Amos Kong [mailto:ak...@redhat.com] Sent: Friday, June 06, 2014 9:12 AM To: qemu-devel@nongnu.org Cc: stefa...@gmail.com; afaer...@suse.de; Gonglei (Arei) Subject: [PATCH v3 3/4] virtio-blk-test.c: add hotplug subtest This patch adds a new

Re: [Qemu-devel] [PATCH v7 2/4] vfio: Add vfio_container_spapr_get_info()

2014-06-05 Thread Gavin Shan
On Fri, Jun 06, 2014 at 09:40:56AM +1000, Alexey Kardashevskiy wrote: On 06/06/2014 05:27 AM, Alex Williamson wrote: On Thu, 2014-06-05 at 15:49 +1000, Alexey Kardashevskiy wrote: To perform DMA mapping via TCE table correctly, the guest must know where DMA window is located on the PCI bus. A

[Qemu-devel] [PATCH] scripts/qemu-binfmt-conf.sh: rewrite to make user friendly easier to maintain

2014-06-05 Thread Mike Frysinger
The current script isn't terribly friendly -- you basically get one chance to run it per boot w/out manually recovering the system state. It also doesn't lend itself to being made into an init script w/out a lot of manual editing. Rewrite the sucker with proper functions so that people can

[Qemu-devel] [PATCH v3 1/9] virtio-blk: Move VirtIOBlockReq to header

2014-06-05 Thread Fam Zheng
For later reusing by dataplane code. Signed-off-by: Fam Zheng f...@redhat.com --- hw/block/virtio-blk.c | 11 --- include/hw/virtio/virtio-blk.h | 11 +++ 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/hw/block/virtio-blk.c b/hw/block/virtio-blk.c index

[Qemu-devel] [PATCH v3 3/9] virtio-blk: Drop bounce buffer from dataplane code

2014-06-05 Thread Fam Zheng
The block layer will handle the unaligned request. Signed-off-by: Fam Zheng f...@redhat.com --- hw/block/dataplane/virtio-blk.c | 25 - 1 file changed, 25 deletions(-) diff --git a/hw/block/dataplane/virtio-blk.c b/hw/block/dataplane/virtio-blk.c index c10b7b7..3d1e9e1

[Qemu-devel] [PATCH v3 0/9] virtio-blk: Converge VirtIOBlockRequest into VirtIOBlockReq

2014-06-05 Thread Fam Zheng
This unifies the request structure used by dataplane and non-dataplane code, while dropping unnessary fields for bounce buffer and read flag. Applies on top of Stefan's block tree. v3: Address Paolo's comments: [06/09] virtio-blk: Use VirtIOBlockReq.in to drop VirtIOBlockReq.inhdr Add

[Qemu-devel] [PATCH v3 2/9] virtio-blk: Convert VirtIOBlockReq.elem to pointer

2014-06-05 Thread Fam Zheng
This will make converging with dataplane code easier. Add virtio_blk_free_request to handle the freeing of request internal fields. Signed-off-by: Fam Zheng f...@redhat.com --- hw/block/virtio-blk.c | 85 +++--- include/hw/virtio/virtio-blk.h | 2 +-

[Qemu-devel] [PATCH v3 4/9] virtio-blk: Drop VirtIOBlockRequest.read

2014-06-05 Thread Fam Zheng
Since it's set but not used. Signed-off-by: Fam Zheng f...@redhat.com --- hw/block/dataplane/virtio-blk.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/hw/block/dataplane/virtio-blk.c b/hw/block/dataplane/virtio-blk.c index 3d1e9e1..4e5e458 100644 --- a/hw/block/dataplane/virtio-blk.c +++

[Qemu-devel] [PATCH v3 6/9] virtio-blk: Use VirtIOBlockReq.in to drop VirtIOBlockReq.inhdr

2014-06-05 Thread Fam Zheng
In current virtio spec, inhdr is a single byte, and is unlikely to change for both functionality and compatibility considerations. Non-dataplane uses .in, and we are on the way to converge them. So let's unify it to get cleaner code. Remove .inhdr and use .in. Signed-off-by: Fam Zheng

[Qemu-devel] [PATCH v3 5/9] virtio-blk: Replace VirtIOBlockRequest with VirtIOBlockReq

2014-06-05 Thread Fam Zheng
Field inhdr is added temporarily for a more mechanical change, and will be dropped in the next commit. Signed-off-by: Fam Zheng f...@redhat.com --- hw/block/dataplane/virtio-blk.c | 34 +++--- include/hw/virtio/virtio-blk.h | 4 2 files changed, 19

[Qemu-devel] [PATCH v3 7/9] virtio-blk: Convert VirtIOBlockReq.out to structrue

2014-06-05 Thread Fam Zheng
The virtio code currently assumes that the outhdr is in its own iovec. This is not guaranteed by the spec, so we should relax this assumption. Convert the VirtIOBlockReq.out field to structrue so that we can use iov_to_buf and then discard the header from the beginning of iovec. Suggested-by:

[Qemu-devel] [PATCH v3 8/9] virtio-blk: Fill in VirtIOBlockReq.out in dataplane code

2014-06-05 Thread Fam Zheng
VirtIOBlockReq is allocated in process_request, and freed in command functions. Signed-off-by: Fam Zheng f...@redhat.com --- hw/block/dataplane/virtio-blk.c | 102 +--- 1 file changed, 44 insertions(+), 58 deletions(-) diff --git

[Qemu-devel] [PATCH v3 9/9] virtio-blk: Fix and clean up the in_sg and out_sg check

2014-06-05 Thread Fam Zheng
out_sg is checked by iov_to_buf below, so it can be dropped. Add assert and iov_discard_back around in_sg, as the in_sg is handled in dataplane code. Signed-off-by: Fam Zheng f...@redhat.com --- hw/block/virtio-blk.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff

Re: [Qemu-devel] Problems compiling HEAD on Mac OS X 10.9.2

2014-06-05 Thread Fam Zheng
On Thu, 06/05 17:11, Peter Maydell wrote: On 5 June 2014 14:38, Rainer Müller rai...@codingfarm.de wrote: On 2014-03-14 13:29, Paolo Bonzini wrote: Il 13/03/2014 19:48, Peter Maydell ha scritto: Yep, here we are: LIBSSH2_LIBS=-L/opt/local/lib -lssh2 -Wl,-headerpad_max_install_names

Re: [Qemu-devel] [PATCH] scripts/qemu-binfmt-conf.sh: rewrite to make user friendly easier to maintain

2014-06-05 Thread Eric Blake
On 06/05/2014 07:47 PM, Mike Frysinger wrote: The current script isn't terribly friendly -- you basically get one chance to run it per boot w/out manually recovering the system state. It also doesn't lend itself to being made into an init script w/out a lot of manual editing. Rewrite the

Re: [Qemu-devel] [RFC 0/2] GET_EMULATED_CPUID support with allow-emulation option

2014-06-05 Thread Eduardo Habkost
On Fri, Jun 06, 2014 at 03:21:04AM +0200, Borislav Petkov wrote: On Fri, Jun 06, 2014 at 12:24:26AM +0200, Alexander Graf wrote: But can we drop the EMULATED name somehow? Can we rename [1] the ioctl to say GET_UNSUPPORTED_CPUID or something along those lines? The name is just a really

Re: [Qemu-devel] [Bug 1326986] [NEW] e1000 - no link detected by

2014-06-05 Thread Gabriel L. Somlo
Matthew Gamble mgam...@mgamble.ca wrote: I'm trying to get a VXWorks image running inside a qemu guest. I have the machine running, however, the vxworks image only has support for the 82544EI device so I had to change the device ID in e1000.c to get the device even recognized so I'm not sure

Re: [Qemu-devel] [Bug 1326986] [NEW] e1000 - no link detected by

2014-06-05 Thread Matthew Gamble
Gabriel, I tried your suggestion and while the OS doesn't detect a link, it does send the following right after toggling the link: e1000: set_ics 4, ICR 4, IMR 0 e1000: set_ics 4, ICR 4, IMR 0 Without diving into the intel programming guide myself does that help in any way? Perhaps it's

Re: [Qemu-devel] [v4][PATCH 2/5] xen, gfx passthrough: create intel isa bridge

2014-06-05 Thread Zhang, Yang Z
Paolo Bonzini wrote on 2014-06-03: Il 30/05/2014 10:59, Tiejun Chen ha scritto: +static int create_pch_isa_bridge(PCIBus *bus, XenHostPCIDevice *hdev) +{ +struct PCIDevice *dev; + +char rid; + +dev = pci_create(bus, PCI_DEVFN(0x1f, 0), intel-pch-isa-bridge); This is really a

Re: [Qemu-devel] [Bug 1326986] [NEW] e1000 - no link detected by

2014-06-05 Thread Gabriel L. Somlo
On Thu, Jun 05, 2014 at 10:55:39PM -0400, Matthew Gamble wrote: Gabriel, I tried your suggestion and while the OS doesn't detect a link, it does send the following right after toggling the link: e1000: set_ics 4, ICR 4, IMR 0 e1000: set_ics 4, ICR 4, IMR 0 Without diving into the

Re: [Qemu-devel] [PATCH 1/3] virtio-blk: Factor common checks out of virtio_blk_handle_read/write()

2014-06-05 Thread Fam Zheng
On Thu, 06/05 14:15, Markus Armbruster wrote: Signed-off-by: Markus Armbruster arm...@redhat.com --- hw/block/virtio-blk.c | 24 ++-- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/hw/block/virtio-blk.c b/hw/block/virtio-blk.c index 8a568e5..f2b4dca

Re: [Qemu-devel] [PATCH 2/3] virtio-blk: Bypass error action and I/O accounting on invalid r/w

2014-06-05 Thread Fam Zheng
On Thu, 06/05 14:15, Markus Armbruster wrote: When a device model's I/O operation fails, we execute the error action. This lets layers above QEMU implement thin provisioning, or attempt to correct errors before they reach the guest. But when the I/O operation fails because its invalid,

Re: [Qemu-devel] [PATCH 3/3] virtio-blk: Treat read/write beyond end as invalid

2014-06-05 Thread Fam Zheng
On Thu, 06/05 14:15, Markus Armbruster wrote: The block layer fails such reads and writes just fine. However, they then get treated like valid operations that fail: the error action gets executed. Unwanted; reporting the error to the guest is the only sensible action. Reject them before

Re: [Qemu-devel] [PATCH 2/3] virtio-blk: Bypass error action and I/O accounting on invalid r/w

2014-06-05 Thread Eric Blake
On 06/05/2014 09:18 PM, Fam Zheng wrote: On Thu, 06/05 14:15, Markus Armbruster wrote: When a device model's I/O operation fails, we execute the error action. This lets layers above QEMU implement thin provisioning, or attempt to correct errors before they reach the guest. But when the I/O

[Qemu-devel] [network performance question] only ~2Gbps throughput between two linux guests which are running on the same host via netperf -t TCP_STREAM -m 1400, but xen can achieve ~7Gbps

2014-06-05 Thread Zhang Haoyu
Hi, all I ran two linux guest on the same kvm host, then start the netserver on one vm, start netperf on the other one, netperf command and test result shown as below, netperf -H 196.5.5.71 -t TCP_STREAM -l 60 -- -m 1400 -M 1400 MIGRATED TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to

[Qemu-devel] [PATCH v8 0/4] vfio on spapr-ppc64

2014-06-05 Thread Alexey Kardashevskiy
Yet another try with VFIO on SPAPR (server PPC64). This adds VFIO support on SPAPR for the existing VFIO-SPAPR-TCE driver in the upstream kernel. Individual patches have more detailed commit logs. Please comment. Thanks! Changes: v8: * added placeholder for KVM_CAP_SPAPR_TCE_VFIO capability *

[Qemu-devel] [PATCH v8 2/4] vfio: Add vfio_container_ioctl()

2014-06-05 Thread Alexey Kardashevskiy
While most operations with VFIO IOMMU driver are generic and used inside vfio.c, there are still some operations which only specific VFIO IOMMU drivers implement. The first example of it will be reading a DMA window start from the host. This adds a helper which passes an ioctl request to the

[Qemu-devel] [PATCH v8 1/4] spapr_iommu: Make in-kernel TCE table optional

2014-06-05 Thread Alexey Kardashevskiy
POWER KVM supports an KVM_CAP_SPAPR_TCE capability which allows allocating TCE tables in the host kernel memory and handle H_PUT_TCE requests targeted to specific LIOBN (logical bus number) right in the host without switching to QEMU. At the moment this is used for emulated devices only and the

[Qemu-devel] [PATCH v8 3/4] spapr_pci_vfio: Add spapr-pci-vfio-host-bridge to support vfio

2014-06-05 Thread Alexey Kardashevskiy
The patch adds a spapr-pci-vfio-host-bridge device type which is a PCI Host Bridge with VFIO support. The new device inherits from the spapr-pci-host-bridge device and adds an iommu property which is an IOMMU id. This ID represents a minimal entity for which IOMMU isolation can be guaranteed. In

[Qemu-devel] checkpatch.pl question

2014-06-05 Thread Alexey Kardashevskiy
Hi! checkpatch.pl often complains on things like this: === ERROR: need consistent spacing around '*' (ctx:WxV) #57: FILE: hw/misc/vfio.c:4323: +int vfio_container_ioctl(AddressSpace *as, int32_t groupid, ^ total: 1 errors, 0 warnings, 46 lines checked ===

<    1   2   3   4   5   >