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

2014-06-19 Thread Peter Crosthwaite
On Wed, Jun 4, 2014 at 10:28 PM, Alexander Graf 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 -device. > > Why i

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

2014-06-19 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 --- stubs/Makefile.objs | 2 +- stubs/qemu-chr-open-spice.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) v2: - add version check fo

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

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

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

2014-06-19 Thread arei.gonglei
From: Gonglei Signed-off-by: Gonglei --- 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 a/tests/Makefile b/tests/Makefile index a23cad1..e5e1f87

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

2014-06-19 Thread arei.gonglei
From: Gonglei Signed-off-by: Gonglei --- MAINTAINERS | 2 +- tests/Makefile| 3 +++ tests/usb-hcd-ohci-test.c | 35 +++ 3 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 tests/usb-hcd-ohci-test.c diff --git a/MAINTA

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

2014-06-19 Thread arei.gonglei
From: Gonglei Signed-off-by: Gonglei --- 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 --git a/tests/Makefile b/tests/Makefile index b

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

2014-06-19 Thread arei.gonglei
From: Gonglei 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 hci-{ohci,uhci,xhci} files for func

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

2014-06-19 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

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

2014-06-19 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 wrote: > > build stub/qemu-chr-open-spice.o only with CONFIG_SPICE, this > suppresses the warning when building without CONFIG_SPICE. > > Cc: Nikolay Nikolaev > S

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

2014-06-19 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 (dev=0x

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

2014-06-19 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- 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 @@ static void int

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

2014-06-19 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

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

2014-06-19 Thread Paolo Bonzini
- Messaggio originale - > Da: "Aurelien Jarno" > A: "Sanjay Lal" > Cc: "James Hogan" , qemu-devel@nongnu.org, "Peter > Maydell" , > k...@vger.kernel.org, "Gleb Natapov" , "Paolo Bonzini" > > Inviato: Giovedì, 19 giugno 2014 23:47:34 > Oggetto: Re: [Qemu-devel] [PATCH v5 10/12] hw/mip

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

2014-06-19 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 use

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

2014-06-19 Thread Paolo Bonzini
- Messaggio originale - > Da: "Stefan Hajnoczi" > A: "Paolo Bonzini" > 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 > dataplane rerror/werror > > On Thu

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

2014-06-19 Thread Nikolay Nikolaev
On Fri, Jun 20, 2014 at 8:55 AM, Hu Tao wrote: > build stub/qemu-chr-open-spice.o only with CONFIG_SPICE, this > suppresses the warning when building without CONFIG_SPICE. > > Cc: Nikolay Nikolaev > Signed-off-by: Hu Tao > --- > stubs/Makefile.objs | 2 +- > 1 file changed, 1 insertion(+), 1 d

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

2014-06-19 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 BIO

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

2014-06-19 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 pc_

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

2014-06-19 Thread Hu Tao
"0x1-0x10" looks better than "0x1-10" Signed-off-by: Hu Tao --- 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 --- a/qapi/string-output-visitor.c +++ b/qapi

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

2014-06-19 Thread Hu Tao
build stub/qemu-chr-open-spice.o only with CONFIG_SPICE, this suppresses the warning when building without CONFIG_SPICE. Cc: Nikolay Nikolaev Signed-off-by: Hu Tao --- stubs/Makefile.objs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/Makefile.objs b/stubs/Makefile.ob

[Qemu-devel] [PATCH 0/3] another round of pci fixes

2014-06-19 Thread Hu Tao
Hi Michael, This series is on top of your pci tree. This series includes two fixups and one patch for adding test of human format of string output visitor, please review. thanks! Hu Tao (3): fixup! libqemustub: add more stubs for qemu-char fixup! qapi/string-output-visitor: fix bugs tests

[Qemu-devel] [PATCH 3/3] tests: add human format test for string output visitor

2014-06-19 Thread Hu Tao
Signed-off-by: Hu Tao --- tests/test-string-output-visitor.c | 109 ++--- 1 file changed, 90 insertions(+), 19 deletions(-) diff --git a/tests/test-string-output-visitor.c b/tests/test-string-output-visitor.c index 28e7359..e89e43c 100644 --- a/tests/test-string-

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

2014-06-19 Thread Sanjay Lal
On Jun 19, 2014, at 9:27 AM, Aurelien Jarno 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 last 1MB of >> DRAM. > > What is the reason for that? I am not opposed to that, but if it is > really needed, it means tha

[Qemu-devel] problem using AHCI on xen fvm

2014-06-19 Thread Zhang, Eniac
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 (http://support.microsoft.com/kb/324103) So here's my attempt (in "hw/i3

[Qemu-devel] [Bug 1308341] Re: Multiple CPUs causes blue screen on Windows guest (14.04 regression)

2014-06-19 Thread Steve
marking as confirmed, see bug 1332409 with the apport-collect information. ** Changed in: linux (Ubuntu) Status: Incomplete => Confirmed -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1308341

Re: [Qemu-devel] [PATCH] block: Make op blocker recursive

2014-06-19 Thread Fam Zheng
On Thu, 06/19 22:20, Benoît Canet wrote: > The Thursday 19 Jun 2014 à 14:13:20 (-0600), Eric Blake wrote : > > On 06/19/2014 02:01 PM, Benoît Canet wrote: > > > As the code will start to operate on arbitratry nodes we need the op > > > blocker > > > > s/arbitratry/arbitrary/ > > > > > to recursi

Re: [Qemu-devel] [PATCH v6 for 2.1 01/10] block: Auto-generate node_names for each BDS entry

2014-06-19 Thread Stefan Hajnoczi
On Thu, Jun 19, 2014 at 08:30:19AM -0400, Jeff Cody wrote: > On Thu, Jun 19, 2014 at 04:55:02PM +0800, Stefan Hajnoczi wrote: > > On Tue, Jun 17, 2014 at 05:53:49PM -0400, Jeff Cody wrote: > > > Currently, node_name is only filled in when done so explicitly by the > > > user. If no node_name is sp

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

2014-06-19 Thread Stefan Hajnoczi
On Thu, Jun 05, 2014 at 02:15:36PM +0200, Markus Armbruster wrote: > +if (sector > total_sectors || nb_sectors > total_sectors - sector) { > +return false; > +} if (sector >= total_sectors || ...) { pgpUGK7ac14gb.pgp Description: PGP signature

Re: [Qemu-devel] [PATCH v2 21/22] target-mips: use pointers referring to appropriate decoding function

2014-06-19 Thread Richard Henderson
On 06/19/2014 03:18 PM, Aurelien Jarno wrote: > I have mixed filling about that. While it clearly makes the code more > readable, I am not sure it would be any faster given that it might kill > branch prediction. Any opinion from others? Given the function pointer is used only once, I don't think

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

2014-06-19 Thread Stefan Hajnoczi
On Thu, Jun 05, 2014 at 02:53:57PM +0200, Paolo Bonzini wrote: > With virtio-blk dataplane, I/O errors might occur while QEMU is > not in the main I/O thread. This makes the block layer's > bdrv_error_action() function thread-safe (modulo changes in > the monitor to make QMP events thread-safe too

Re: [Qemu-devel] [PATCH v4 16/29] memory: move preallocation code out of exec.c

2014-06-19 Thread Hu Tao
On Wed, Jun 18, 2014 at 10:14:23PM +0300, Michael S. Tsirkin wrote: > On Mon, Jun 09, 2014 at 06:25:21PM +0800, Hu Tao wrote: > > From: Paolo Bonzini > > > > So that backends can use it. > > > > Signed-off-by: Paolo Bonzini > > Signed-off-by: Hu Tao > > OK this breaks mingw build because you

Re: [Qemu-devel] [PATCH] vfio: Make BARs native endian

2014-06-19 Thread Alex Williamson
On Thu, 2014-06-19 at 11:53 +1000, Alexey Kardashevskiy wrote: > On 06/19/2014 10:42 AM, Alexey Kardashevskiy wrote: > > On 06/19/2014 04:57 AM, Alex Williamson wrote: > >> On Wed, 2014-06-18 at 21:35 +1000, Alexey Kardashevskiy wrote: > >>> Slow BAR access path is used when VFIO fails to mmap() BA

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

2014-06-19 Thread Gonglei (Arei)
Good morning, Gerd & Andreas > -Original Message- > From: Gerd Hoffmann [mailto:kra...@redhat.com] > Sent: Thursday, June 19, 2014 9:47 PM > To: Andreas Färber > Cc: Gonglei (Arei); qemu-devel@nongnu.org; stefa...@redhat.com; > ebl...@redhat.com; ak...@redhat.com; Huangweidong (C); Luone

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

2014-06-19 Thread Gonglei (Arei)
> -Original Message- > From: Andreas Färber [mailto:afaer...@suse.de] > Sent: Thursday, June 19, 2014 9:33 PM > To: Gonglei (Arei) > Cc: Gerd Hoffmann; qemu-devel@nongnu.org; stefa...@redhat.com; > ebl...@redhat.com; ak...@redhat.com; Huangweidong (C); Luonengjun > Subject: Re: [PATCH 0/5]

Re: [Qemu-devel] [RFC 1/3] image-fuzzer: Added execution of multiple tests to the test runner

2014-06-19 Thread Fam Zheng
On Wed, 06/18 20:14, Maria Kustova wrote: > Apart from fixes this patch allows to run multiple tests in a row. If 'seed' > argument is not specified the runner generates and executes new tests one by > one till keyboard interruption. Specified seed forces the runner to execute > only one test with

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

2014-06-19 Thread Don Slutz
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 --- v7: Rename from "xen-hvm: Pass is_default to xen_hvm_init" Drop is_default. Use object_property_ge

[Qemu-devel] [PATCH 2.1 v7 1/3] xen-hvm: Fix xen_hvm_init() to adjust pc memory layout

2014-06-19 Thread Don Slutz
This is just below_4g_mem_size and above_4g_mem_size which is used later in QEMU. Acked-by: Stefano Stabellini Signed-off-by: Don Slutz --- v7: No change v6: No change v5: No change v4: Switch Acked-by & Signed-off-by rebase on master v3: Add Acked-by: Stefano Stabellini

[Qemu-devel] [PATCH 2.1 v7 2/3] pc & q35: Add new machine opt max-ram-below-4g

2014-06-19 Thread Don Slutz
This is a pc & q35 only machine opt. If you add enough PCI devices then all mmio for them will not fit below 4G which may not be the layout the user wanted. This allows you to increase the below 4G address space that PCI devices can use (aka decrease ram below 4G) and therefore in more cases not h

[Qemu-devel] [PATCH 2.1 v7 0/3] Add max-ram-below-4g (was Add pci_hole_min_size machine option)

2014-06-19 Thread Don Slutz
Changes v6 to v7: Drop most of v5 to v6 changes. Michael S. Tsirkin: #2 "pc & q35: Add new machine opt max-ram-below-4g": default: max-ram-below-4g=4g pc & q35: calculate lowmem lowmem = MIN(lowmem, max-ram-below-4g) calculate above_4g_mem_size a

Re: [Qemu-devel] [PATCH] bsd-user: Implement strace support for getcwd syscall

2014-06-19 Thread Sean Bruno
On Mon, 2014-06-16 at 08:05 -0700, Sean Bruno wrote: > Signed-off-by: Sean Bruno > --- > bsd-user/freebsd/strace.list | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/bsd-user/freebsd/strace.list b/bsd-user/freebsd/strace.list > index 2800a2d..f10caaa 100644 > --- a/bsd-user/freebsd/stra

Re: [Qemu-devel] [PATCH v4 2/2] qga: Add guest-get-fsinfo command

2014-06-19 Thread Tomoki Sekiyama
Hi Eric, Thank you for the review. On 6/19/14 17:23 , "Eric Blake" wrote: >On 06/05/2014 08:57 AM, Tomoki Sekiyama wrote: >> Add command to get mounted filesystems information in the guest. >> The returned value contains a list of mountpoint paths and >> corresponding disks info such as disk bu

[Qemu-devel] [PATCH 1/4] bsd-user: Implement new syscall print_sysarch and add strace support

2014-06-19 Thread Sean Bruno
Signed-off-by: Sean Bruno Signed-off-by: Stacey Son --- bsd-user/freebsd/os-strace.h | 35 +++ bsd-user/freebsd/strace.list | 2 +- bsd-user/i386/syscall.h| 21 + bsd-user/i386/target_arch_sysarch.h| 78

[Qemu-devel] [PATCH 3/4] bsd-user: Rename linux_binprm to bsd_binprm

2014-06-19 Thread Sean Bruno
These too similar data structures will be diverging in future updates from my trees. Rename now. Signed-off-by: Sean Bruno --- bsd-user/bsdload.c | 4 ++-- bsd-user/elfload.c | 4 ++-- bsd-user/main.c| 2 +- bsd-user/qemu.h| 8 4 files changed, 9 insertions(+), 9 deletions(-)

[Qemu-devel] [PATCH 4/4] bsd-user: move arch/OS dependent code out of syscall.c

2014-06-19 Thread Sean Bruno
From: Stacey Son This change moves the system call handler for sysctl(2) and sysarch(2) from syscall.c to the OS and arch dependent directories. This eliminates many of the #ifdef's in syscall.c. These system call handlers are now located in the host os and target arch directories. Signed-off-b

[Qemu-devel] [PATCH 0/4] bsd-user: Update Queue

2014-06-19 Thread Sean Bruno
This patchset brings us a couple of steps closer to the FreeBSD Development tree, Stacey Son's bsd-user branch and qemu-devel port maintained out of tree. These patches are designed to begin to break apart the architectures in bsd-user for the upcoming new arch support patches. Patch 1/4 of this

Re: [Qemu-devel] [PATCH v2 19/22] target-mips: remove JR, BLTZAL, BGEZAL and add NAL, BAL instructions

2014-06-19 Thread Aurelien Jarno
On Wed, Jun 11, 2014 at 04:19:49PM +0100, Leon Alrae wrote: > From: Yongbok Kim > > Signed-off-by: Yongbok Kim > Signed-off-by: Leon Alrae > --- > disas/mips.c|2 ++ > target-mips/translate.c | 18 -- > 2 files changed, 18 insertions(+), 2 deletions(-) > > di

Re: [Qemu-devel] [PATCH v2 1/2] vl: allow other threads to do qemu_system_vmstop_request

2014-06-19 Thread Eric Blake
On 06/05/2014 06:53 AM, Paolo Bonzini wrote: > There patch protects vmstop_requested with a lock and introduces s/There/This/ ? > qemu_system_vmstop_request_prepare. > > Together with the new call to qemu_vmstop_requested in vm_start, > qemu_system_vmstop_request_prepare avoids a race where the

Re: [Qemu-devel] [PATCH v2 21/22] target-mips: use pointers referring to appropriate decoding function

2014-06-19 Thread Aurelien Jarno
On Wed, Jun 11, 2014 at 04:19:51PM +0100, Leon Alrae wrote: > After selecting CPU in QEMU the base ISA will not change. Therefore > introducing *_arch function pointers that are set in cpu_state_reset to > point at the appropriate SPECIAL and SPECIAL3 decoding functions, and avoid > unnecessary 'if

Re: [Qemu-devel] [PATCH v2 22/22] target-mips: define a new generic CPU supporting MIPS64R6

2014-06-19 Thread Aurelien Jarno
On Wed, Jun 11, 2014 at 04:19:52PM +0100, Leon Alrae wrote: > Signed-off-by: Leon Alrae > --- > target-mips/translate_init.c | 29 + > 1 files changed, 29 insertions(+), 0 deletions(-) > > diff --git a/target-mips/translate_init.c b/target-mips/translate_init.c > in

Re: [Qemu-devel] [PATCH 08/12] target-mips: add BadInstr and BadInstrP support

2014-06-19 Thread Aurelien Jarno
On Thu, Jun 19, 2014 at 03:45:39PM +0100, Leon Alrae wrote: > BadInstr Register (CP0 Register 8, Select 1) > The BadInstr register is a read-only register that capture the most recent > instruction which caused an exception. > > BadInstrP Register (CP0 Register 8, Select 2) > The BadInstrP registe

Re: [Qemu-devel] [PATCH 09/12] target-mips: save cpu state if instruction can cause an exception

2014-06-19 Thread Aurelien Jarno
On Thu, Jun 19, 2014 at 03:45:40PM +0100, Leon Alrae wrote: > Execution of these instructions can trigger exceptions which are supposed > to update BadInstr/BadInstrP. Therefore saving cpu state in order capture > the opcode. As said in the previous patch, the performance impact would be quite sig

Re: [Qemu-devel] [PATCH v2 2/2] block: asynchronously stop the VM on I/O errors

2014-06-19 Thread Eric Blake
On 06/05/2014 06:53 AM, Paolo Bonzini wrote: > With virtio-blk dataplane, I/O errors might occur while QEMU is > not in the main I/O thread. However, it's invalid to call vm_stop > when we're neither in a VCPU thread nor in the main I/O thread, > even if we were to take the iothread mutex around i

Re: [Qemu-devel] [PATCH] e1000: factor out checking for auto-negotiation availability

2014-06-19 Thread Michael S. Tsirkin
On Thu, Jun 19, 2014 at 03:40:51PM -0400, Gabriel L. Somlo wrote: > Also fix minor indentation issues in the surrounding code. > > Suggested-by: Michael S. Tsirkin > Signed-off-by: Gabriel Somlo Applied, thanks! > --- > hw/net/e1000.c | 26 ++ > 1 file changed, 14 inse

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

2014-06-19 Thread Aurelien Jarno
On Thu, Jun 19, 2014 at 12:34:24PM -0700, Sanjay Lal wrote: > > On Jun 19, 2014, at 9:27 AM, Aurelien Jarno 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 last 1MB of > >> DRAM. > > > > What is the reason fo

Re: [Qemu-devel] [PATCH] qmp: clean out whitespace

2014-06-19 Thread Luiz Capitulino
On Mon, 16 Jun 2014 16:05:26 +0300 "Michael S. Tsirkin" wrote: > qmp-commands.hx has some UTF8 space characters. > Replace with ascii whitespace. > > Signed-off-by: Michael S. Tsirkin > --- > qmp-commands.hx | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/qmp-commands

[Qemu-devel] [PULL 28/40] qapi event: convert NIC_RX_FILTER_CHANGED

2014-06-19 Thread Luiz Capitulino
From: Wenchao Xia Param name is declared as optional, since in code it is an optional one. Signed-off-by: Wenchao Xia Signed-off-by: Paolo Bonzini Reviewed-by: Eric Blake Signed-off-by: Luiz Capitulino --- docs/qmp/qmp-events.txt | 17 - hw/net/virtio-net.c | 13 +++-

Re: [Qemu-devel] [PATCH 4/5] PPC: e500: Support platform devices

2014-06-19 Thread Alexander Graf
On 19.06.14 16:56, Eric Auger wrote: On 06/04/2014 02:28 PM, Alexander Graf wrote: For e500 our approach to supporting platform devices is to create a simple bus from the guest's point of view within which we map platform devices dynamically. We allocate memory regions always within the "platf

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

2014-06-19 Thread Alexander Graf
On 19.06.14 22:54, Paolo Bonzini wrote: Il 04/06/2014 14:28, Alexander Graf ha scritto: But do we need that level of complexity for normal devices usually? In a normal platform world (SoCs, PV machines) we have a flat memory layout we can plug our device memory into. We also have a flat IRQ

[Qemu-devel] [PULL 17/40] qapi event: convert RESUME

2014-06-19 Thread Luiz Capitulino
From: Wenchao Xia Signed-off-by: Wenchao Xia Signed-off-by: Paolo Bonzini Reviewed-by: Eric Blake Signed-off-by: Luiz Capitulino --- docs/qmp/qmp-events.txt | 12 qapi-event.json | 9 + vl.c| 2 +- 3 files changed, 10 insertions(+), 13 delet

[Qemu-devel] [PULL 03/40] qapi: Suppress unwanted space between type and identifier

2014-06-19 Thread Luiz Capitulino
From: Amos Kong We always generate a space between type and identifier in parameter and variable declarations, even when idiomatic C style doesn't have a space there. Suppress it. Signed-off-by: Amos Kong Signed-off-by: Luiz Capitulino --- scripts/qapi-commands.py | 4 ++-- scripts/qapi.py

[Qemu-devel] [PULL 26/40] qapi event: convert BLOCK_IMAGE_CORRUPTED

2014-06-19 Thread Luiz Capitulino
From: Wenchao Xia Signed-off-by: Wenchao Xia Signed-off-by: Paolo Bonzini Reviewed-by: Eric Blake Signed-off-by: Luiz Capitulino --- block/qcow2-refcount.c | 14 -- docs/qmp/qmp-events.txt | 22 -- qapi/block-core.json| 24 3 file

[Qemu-devel] [PULL 18/40] qapi event: convert SUSPEND

2014-06-19 Thread Luiz Capitulino
From: Wenchao Xia Signed-off-by: Wenchao Xia Signed-off-by: Paolo Bonzini Reviewed-by: Eric Blake Signed-off-by: Luiz Capitulino --- docs/qmp/qmp-events.txt | 12 qapi-event.json | 10 ++ vl.c| 2 +- 3 files changed, 11 insertions(+), 13 dele

Re: [Qemu-devel] [PATCH v2 01/22] target-mips: define ISA_MIPS64R6

2014-06-19 Thread Aurelien Jarno
On Wed, Jun 11, 2014 at 04:19:31PM +0100, Leon Alrae wrote: > Signed-off-by: Leon Alrae > --- > v2: > * move new CPU definition to a separate patch > --- > target-mips/mips-defs.h | 28 +++- > 1 files changed, 19 insertions(+), 9 deletions(-) > > diff --git a/target-mip

[Qemu-devel] [PULL 34/40] qapi event: clean up

2014-06-19 Thread Luiz Capitulino
From: Wenchao Xia Signed-off-by: Wenchao Xia Signed-off-by: Paolo Bonzini Reviewed-by: Eric Blake Signed-off-by: Luiz Capitulino --- include/monitor/monitor.h | 40 - monitor.c | 220 + stubs/Makefile.objs| 1 -

Re: [Qemu-devel] [PATCH v2 15/22] softfloat: add functions corresponding to IEEE-2008 min/maxNumMag

2014-06-19 Thread Aurelien Jarno
On Wed, Jun 11, 2014 at 04:19:45PM +0100, Leon Alrae wrote: > Add abs argument to the existing softfloat minmax() function and define > new float{32,64}_{min,max}nummag functions. > > minnummag(x,y) returns x if |x| < |y|, >returns y if |y| < |x|, >otherwise minnum(

Re: [Qemu-devel] [PATCH v2 18/22] target-mips: do not allow Status.FR=0 mode in 64-bit FPU

2014-06-19 Thread Aurelien Jarno
On Wed, Jun 11, 2014 at 04:19:48PM +0100, Leon Alrae wrote: > Status.FR bit must be ignored on write and read as 1 when an implementation of > Release 6 of the Architecture in which a 64-bit floating point unit is > implemented. > > Signed-off-by: Leon Alrae > --- > target-mips/translate.c |

Re: [Qemu-devel] [PATCH v2 20/22] mips_malta: update malta's pseudo-bootloader - replace JR with JALR

2014-06-19 Thread Aurelien Jarno
On Wed, Jun 11, 2014 at 04:19:50PM +0100, Leon Alrae wrote: > JR has been removed in R6 and now this instruction will cause Reserved > Instruction Exception. Therefore use JALR with rd=0 which is equivalent to JR. > > Signed-off-by: Leon Alrae > --- > hw/mips/mips_malta.c | 10 +- > 1

Re: [Qemu-devel] [PATCH v4 2/2] qga: Add guest-get-fsinfo command

2014-06-19 Thread Eric Blake
On 06/05/2014 08:57 AM, Tomoki Sekiyama wrote: > Add command to get mounted filesystems information in the guest. > The returned value contains a list of mountpoint paths and > corresponding disks info such as disk bus type, drive address, > and the disk controllers' PCI addresses, so that manageme

[Qemu-devel] [PULL 02/40] qapi: add const prefix to 'char *' insider c_type()

2014-06-19 Thread Luiz Capitulino
From: Amos Kong It's ugly to add const prefix for parameter type by an if statement outside c_type(). This patch adds a parameter to do it. Signed-off-by: Amos Kong Suggested-by: Markus Armbruster Reviewed-by: Eric Blake Reviewed-by: Paolo Bonzini Reviewed-by: Markus Armbruster Signed-off-b

[Qemu-devel] [PULL 35/40] qemu-char: introduce qemu_chr_alloc

2014-06-19 Thread Luiz Capitulino
From: Paolo Bonzini The next patch will modify this function to initialize state that is common to all backends. Reviewed-by: Fam Zheng Signed-off-by: Paolo Bonzini Signed-off-by: Luiz Capitulino --- backends/baum.c | 2 +- backends/msmouse.c| 2 +- include/sysemu/char.h | 9 +++

[Qemu-devel] [PULL 13/40] qapi event: convert SHUTDOWN

2014-06-19 Thread Luiz Capitulino
From: Wenchao Xia This patch also eliminates build time warning caused by QAPI_EVENT_MAX = 0. Signed-off-by: Wenchao Xia Signed-off-by: Paolo Bonzini Reviewed-by: Eric Blake Signed-off-by: Luiz Capitulino --- docs/qmp/qmp-events.txt | 15 --- qapi-event.json | 12 +++

[Qemu-devel] [PULL 31/40] qapi event: convert BALLOON_CHANGE

2014-06-19 Thread Luiz Capitulino
From: Wenchao Xia Signed-off-by: Wenchao Xia Signed-off-by: Paolo Bonzini Reviewed-by: Eric Blake Signed-off-by: Luiz Capitulino --- balloon.c | 13 - docs/qmp/qmp-events.txt| 17 - hw/virtio/virtio-balloon.c | 6 -- include/sysemu/balloo

[Qemu-devel] [PULL 16/40] qapi event: convert STOP

2014-06-19 Thread Luiz Capitulino
From: Wenchao Xia Signed-off-by: Wenchao Xia Signed-off-by: Paolo Bonzini Reviewed-by: Eric Blake Signed-off-by: Luiz Capitulino --- cpus.c | 4 +++- docs/qmp/qmp-events.txt | 12 qapi-event.json | 9 + 3 files changed, 12 insertions(+), 13 del

Re: [Qemu-devel] [PATCH v2 12/22] target-mips: add ALIGN, DALIGN, BITSWAP and DBITSWAP instructions

2014-06-19 Thread Aurelien Jarno
On Wed, Jun 11, 2014 at 04:19:42PM +0100, Leon Alrae wrote: > From: Yongbok Kim > > Signed-off-by: Yongbok Kim > Signed-off-by: Leon Alrae > --- > v2: > * have separate bitswap and dbitswap helpers and use common function > * use TCG_CALL_NO_RWG_SE flag for bitswap and dbitswap helpers > * remo

Re: [Qemu-devel] [PATCH v2 09/22] target-mips: redefine Integer Multiply and Divide instructions

2014-06-19 Thread Aurelien Jarno
On Wed, Jun 11, 2014 at 04:19:39PM +0100, Leon Alrae wrote: > Use "R6_" prefix in front of all new Multiply / Divide instructions for > easier differentiation between R6 and preR6. > > Signed-off-by: Leon Alrae > --- > v2: > * use tcg_gen_mul_* for cases where the high part is discarded > --- >

Re: [Qemu-devel] [PATCH v2 13/22] target-mips: add Compact Branches

2014-06-19 Thread Aurelien Jarno
On Wed, Jun 11, 2014 at 04:19:43PM +0100, Leon Alrae wrote: > From: Yongbok Kim > > Introduce MIPS32R6 Compact Branch instructions which do not have delay slot - > they have forbidden slot instead. However, current implementation does not > support forbidden slot yet. > > Signed-off-by: Yongbok

[Qemu-devel] [PULL 19/40] qapi event: convert SUSPEND_DISK

2014-06-19 Thread Luiz Capitulino
From: Wenchao Xia Signed-off-by: Wenchao Xia Signed-off-by: Paolo Bonzini Reviewed-by: Eric Blake Signed-off-by: Luiz Capitulino --- docs/qmp/qmp-events.txt | 14 -- hw/acpi/core.c | 4 ++-- qapi-event.json | 12 3 files changed, 14 insertions(+), 1

Re: [Qemu-devel] [PATCH v2 06/22] target-mips: split decode_opc_special* into *_r6 and *_legacy

2014-06-19 Thread Aurelien Jarno
On Wed, Jun 11, 2014 at 04:19:36PM +0100, Leon Alrae wrote: > For better code readability and to avoid 'if' statements for all R6 and preR6 > instructions whose opcodes are the same - decode_opc_special* functions are > split into functions with _r6 and _legacy suffixes. > > *_r6 functions will co

Re: [Qemu-devel] [PATCH v2 11/22] target-mips: Status.UX/SX/KX enable 32-bit address wrapping

2014-06-19 Thread Aurelien Jarno
On Wed, Jun 11, 2014 at 04:19:41PM +0100, Leon Alrae wrote: > In R6 the special behaviour for data references is also specified for Kernel > and Supervisor mode. Therefore MIPS_HFLAG_UX is replaced by generic > MIPS_HFLAG_AWRAP indicating enabled 32-bit address wrapping. > > Signed-off-by: Leon Al

Re: [Qemu-devel] [PATCH v4 1/2] qga: Add guest-fsfreeze-freeze-list command

2014-06-19 Thread Eric Blake
On 06/05/2014 08:57 AM, Tomoki Sekiyama wrote: > If an array of mount point paths is specified as 'mountpoints' argument > of guest-fsfreeze-freeze-list, qemu-ga will only freeze the file systems > mounted on specified paths in Linux guests. Otherwise, it works as the > same way as guest-fsfreeze-f

[Qemu-devel] [PULL 11/40] monitor: add an implemention of qapi event emit method

2014-06-19 Thread Luiz Capitulino
From: Wenchao Xia The monitor is now hooked on the new event mechanism, so that later patches can convert event callers one by one. Most code are copied from old monitor_protocol_* functions with some modification. Note that two build time warnings will be raised after this patch. One is caused

[Qemu-devel] [PULL 37/40] qemu-char: move pty_chr_update_read_handler around

2014-06-19 Thread Luiz Capitulino
From: Paolo Bonzini Reviewed-by: Fam Zheng Signed-off-by: Paolo Bonzini Signed-off-by: Luiz Capitulino --- qemu-char.c | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index 26994aa..9470ea2 100644 --- a/qemu-char

[Qemu-devel] [PULL 08/40] qapi script: add event support

2014-06-19 Thread Luiz Capitulino
From: Wenchao Xia qapi-event.py will parse the schema and generate qapi-event.c, then the API in qapi-event.c can be used to handle events in qemu code. All API have prefix "qapi_event". The script mainly includes two parts: generate API for each event define, generate an enum type for all defin

[Qemu-devel] [PULL for-2.1 00/40] QMP queue

2014-06-19 Thread Luiz Capitulino
The following changes since commit 6baa963f4dcc211801608ebe1e0482b51653350c: Merge remote-tracking branch 'remotes/bonzini/scsi-next' into staging (2014-06-19 16:18:04 +0100) are available in the git repository at: git://repo.or.cz/qemu/qmp-unstable.git queue/qmp for you to fetch changes

Re: [Qemu-devel] [PATCH 2/3] hw/pcie: implement power controller functionality

2014-06-19 Thread Paolo Bonzini
Il 19/06/2014 16:39, Michael S. Tsirkin ha scritto: > pci_word_test_and_set_mask(dev->wmask + pos + PCI_EXP_SLTCTL, > PCI_EXP_SLTCTL_PIC | > + PCI_EXP_SLTCTL_PCC | > PCI_EXP_SLTCTL_AIC | >

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

2014-06-19 Thread Paolo Bonzini
Il 04/06/2014 14:28, Alexander Graf ha scritto: But do we need that level of complexity for normal devices usually? In a normal platform world (SoCs, PV machines) we have a flat memory layout we can plug our device memory into. We also have a flat IRQ model where we can plug our device IRQs into

[Qemu-devel] [PULL 05/40] os-posix: include sys/time.h

2014-06-19 Thread Luiz Capitulino
From: Wenchao Xia Since gettimeofday() is used in this header file as a macro define, include the function's define header file, to avoid compile warning when other file include os-posix.h. Signed-off-by: Wenchao Xia Reviewed-by: Eric Blake Signed-off-by: Paolo Bonzini Signed-off-by: Luiz Cap

[Qemu-devel] Makefile bug: %/config-devices.mak doesn't depend on .mak files included by defconfig

2014-06-19 Thread Peter Maydell
I recently ran into a confusing stale-file issue when adding a new device to an ARM board: when doing a make not from clean after having switched from master to my branch the .o file for the new device got linked into the arm-softmmu exe but not the aarch64-softmmu one. This turns out to be an issu

[Qemu-devel] [PULL 12/40] qapi: add new schema file qapi-event.json

2014-06-19 Thread Luiz Capitulino
From: Wenchao Xia Signed-off-by: Wenchao Xia Signed-off-by: Paolo Bonzini Reviewed-by: Eric Blake Signed-off-by: Luiz Capitulino --- Makefile | 3 ++- qapi-event.json | 0 qapi-schema.json | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 qapi-event.json d

Re: [Qemu-devel] [PATCH] block: Make op blocker recursive

2014-06-19 Thread Benoît Canet
The Thursday 19 Jun 2014 à 14:26:04 (-0600), Eric Blake wrote : > On 06/19/2014 02:20 PM, Benoît Canet wrote: > > >> This unconditionally removes all blockers of type op of the subtree > >> > >> Yikes - is that really what we want? Or do we need to start doing > >> blocker reference counting? >

[Qemu-devel] [PULL 29/40] qapi event: convert VNC events

2014-06-19 Thread Luiz Capitulino
From: Wenchao Xia Since VNC_CONNECTED, VNC_DISCONNECTED, VNC_INITIALIZED share some common functions, convert them in one patch. Signed-off-by: Wenchao Xia Signed-off-by: Paolo Bonzini Reviewed-by: Eric Blake Signed-off-by: Luiz Capitulino --- docs/qmp/qmp-events.txt | 90 -

Re: [Qemu-devel] [snabb-devel] Re: [PATCH v2] qtest: enable vhost-user-test

2014-06-19 Thread Nikolay Nikolaev
On Thu, Jun 19, 2014 at 9:24 PM, Michael S. Tsirkin wrote: > On Thu, Jun 19, 2014 at 08:35:42PM +0300, Nikolay Nikolaev wrote: > > Use qtest-obj-y to get the right library order. CONFIG_POSIX ensures > > mingw compilation won't break. > > > > Signed-off-by: Nikolay Nikolaev > > okay but why does

[Qemu-devel] [PULL 04/40] json-lexer: fix escaped backslash in single-quoted string

2014-06-19 Thread Luiz Capitulino
From: Paolo Bonzini This made the lexer wait for a closing *double* quote. Signed-off-by: Paolo Bonzini Reviewed-by: Eric Blake Reviewed-by: Amos Kong Signed-off-by: Luiz Capitulino --- qobject/json-lexer.c | 4 ++-- tests/check-qjson.c | 7 +++ 2 files changed, 9 insertions(+), 2 dele

[Qemu-devel] [PULL 07/40] qapi: add event helper functions

2014-06-19 Thread Luiz Capitulino
From: Wenchao Xia This file holds some functions that do not need to be generated. Signed-off-by: Wenchao Xia Reviewed-by: Eric Blake Signed-off-by: Paolo Bonzini Signed-off-by: Luiz Capitulino --- include/qapi/qmp-event.h | 27 ++ qapi/Makefile.objs | 1 + qapi/qmp-e

Re: [Qemu-devel] [PATCH] block: Make op blocker recursive

2014-06-19 Thread Eric Blake
On 06/19/2014 02:20 PM, Benoît Canet wrote: >> This unconditionally removes all blockers of type op of the subtree >> >> Yikes - is that really what we want? Or do we need to start doing >> blocker reference counting? >> >> Consider: >> >> base <- snap1 <- active >> >> Looking at Jeff's proposal

[Qemu-devel] [PULL 30/40] qapi event: convert SPICE events

2014-06-19 Thread Luiz Capitulino
From: Wenchao Xia SPICE_INITIALIZED, SPICE_CONNECTED, SPICE_DISCONNECTED and SPICE_MIGRATE_COMPLETED are converted in one patch, since they use some common functions. inet_strfamily() is removed since no callers exist anymore. Note that there is no existing doc for SPICE_MIGRATE_COMPLETED in doc

[Qemu-devel] [PULL 21/40] qapi event: convert RTC_CHANGE

2014-06-19 Thread Luiz Capitulino
From: Wenchao Xia This patch also eliminates build time warning caused by no caller of monitor_qapi_event_throttle(). Signed-off-by: Wenchao Xia Signed-off-by: Paolo Bonzini Reviewed-by: Eric Blake Signed-off-by: Luiz Capitulino --- docs/qmp/qmp-events.txt | 16 hw/ppc/spap

Re: [Qemu-devel] [PATCH] block: Make op blocker recursive

2014-06-19 Thread Benoît Canet
The Thursday 19 Jun 2014 à 14:13:20 (-0600), Eric Blake wrote : > On 06/19/2014 02:01 PM, Benoît Canet wrote: > > As the code will start to operate on arbitratry nodes we need the op blocker > > s/arbitratry/arbitrary/ > > > to recursively block or unblock whole BDS subtrees. > > > > Also add a

[Qemu-devel] [PULL 06/40] qapi: Add includes from qapi/ as dependencies

2014-06-19 Thread Luiz Capitulino
From: Max Reitz qapi-schema.json has been split into three smaller JSON files in qapi/. Add them as dependencies for the code generation in the Makefile, so changes to them will result in a rebuilt of all QAPI-dependent code. Signed-off-by: Max Reitz Signed-off-by: Paolo Bonzini Reviewed-by: E

[Qemu-devel] [PULL 01/40] qapi: fix coding style in parameters list

2014-06-19 Thread Luiz Capitulino
From: Amos Kong A space after * when declaring a pointer type is redundant. Signed-off-by: Amos Kong Reviewed-by: Eric Blake Reviewed-by: Paolo Bonzini Reviewed-by: Markus Armbruster Signed-off-by: Luiz Capitulino --- scripts/qapi-visit.py | 20 ++-- 1 file changed, 10 inse

  1   2   3   4   >