[Qemu-devel] [PATCH v2 3/6] trace: Add trace events group implementation in the backend "simple"

2011-10-19 Thread Mark Wu
Signed-off-by: Mark Wu --- trace/simple.c | 30 ++ trace/simple.h |7 +++ 2 files changed, 37 insertions(+), 0 deletions(-) diff --git a/trace/simple.c b/trace/simple.c index b639dda..05acee0 100644 --- a/trace/simple.c +++ b/trace/simple.c @@ -321,6 +321,1

[Qemu-devel] [PATCH v2 2/6] trace: Add HMP monitor commands for trace events group

2011-10-19 Thread Mark Wu
Add monitor commands 'trace-group NAME on|off' and 'info trace-groups' to set and query the state of a given group of trace events. Signed-off-by: Mark Wu --- hmp-commands.hx | 14 ++ monitor.c | 22 ++ trace/control.h |9 + trace/default.c |

[Qemu-devel] [PATCH v2 4/6] trace: Add trace events group implementation in the backend "stderr"

2011-10-19 Thread Mark Wu
Signed-off-by: Mark Wu --- trace/stderr.c | 32 trace/stderr.h |7 +++ 2 files changed, 39 insertions(+), 0 deletions(-) diff --git a/trace/stderr.c b/trace/stderr.c index 7107c4a..c55bed4 100644 --- a/trace/stderr.c +++ b/trace/stderr.c @@ -12,6 +12,1

[Qemu-devel] [PATCH v2 5/6] trace: Enable "-trace events" argument to control initial state of groups

2011-10-19 Thread Mark Wu
A group of trace events can be enabled in early running stage through adding its group name prefixed with "group:" to trace events list file which is passed to "-trace events". Signed-off-by: Mark Wu --- trace/control.c | 17 + 1 files changed, 17 insertions(+), 0 deletions(-)

[Qemu-devel] [PATCH v2 0/6] trace: Add support for trace events grouping

2011-10-19 Thread Mark Wu
This series add support for trace events grouping. The state of a given group of trace events can be queried or changed in bulk by the following monitor commands: * info trace-groups View available trace event groups and their state. State 1 means enabled, state 0 means disabled. * trace-g

[Qemu-devel] buildbot failure in qemu on s390-next_i386_debian_6_0

2011-10-19 Thread qemu
The Buildbot has detected a new failure on builder s390-next_i386_debian_6_0 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/s390-next_i386_debian_6_0/builds/67 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: yuzuki B

[Qemu-devel] buildbot failure in qemu on s390-next_x86_64_debian_6_0

2011-10-19 Thread qemu
The Buildbot has detected a new failure on builder s390-next_x86_64_debian_6_0 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/s390-next_x86_64_debian_6_0/builds/66 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: yuzu

Re: [Qemu-devel] [PATCH 1/1] Introduce a new bus "ICC" to connect APIC

2011-10-19 Thread liu ping fan
On Wed, Oct 19, 2011 at 03:42:27PM +0200, Jan Kiszka wrote: > On 2011-10-19 15:33, Jan Kiszka wrote: > > On 2011-10-19 14:54, Anthony Liguori wrote: > >> On 10/19/2011 05:53 AM, Jan Kiszka wrote: > >>> On 2011-10-19 03:55, pingf...@linux.vnet.ibm.com wrote: > From: Liu Ping Fan > > I

Re: [Qemu-devel] gcc auto-omit-frame-pointer vs msvc longjmp

2011-10-19 Thread xunxun
Hi, all I think this issue causes the gdb crash on XP. You can see the thread: http://sourceware.org/ml/gdb/2011-10/msg00056.html My many friends and I can reproduce this crash issue, but no problem on Win7. On Thu, Oct 20, 2011 at 5:05 AM, Bob Breuer wrote: > Kai Tietz wrote: >> 2011/10/18 Bob

Re: [Qemu-devel] [PATCH 1/9] Add stub functions for PCI device models to do PCI DMA

2011-10-19 Thread David Gibson
On Wed, Oct 19, 2011 at 11:10:15AM +0200, Avi Kivity wrote: > On 10/18/2011 03:46 AM, David Gibson wrote: > > On Sun, Oct 16, 2011 at 03:15:53PM +0200, Avi Kivity wrote: > > > On 10/14/2011 04:14 AM, David Gibson wrote: > > > > > Virtio is a very, very special case. virtio requires coherent RAM >

Re: [Qemu-devel] [Question] dump memory when host pci device is used by guest

2011-10-19 Thread Wen Congyang
At 10/19/2011 07:40 PM, Jan Kiszka Write: > On 2011-10-19 04:04, KAMEZAWA Hiroyuki wrote: >> On Tue, 18 Oct 2011 10:31:10 +0200 >> Jan Kiszka wrote: >> >>> On 2011-10-18 10:31, Wen Congyang wrote: At 10/18/2011 04:26 PM, Jan Kiszka Write: > On 2011-10-18 10:25, Wen Congyang wrote: >>

Re: [Qemu-devel] [PATCH] Add linux-headers/asm to .gitignore

2011-10-19 Thread Juan Quintela
David Gibson wrote: > linux-headers/asm is a symlink generated during configure. It should not, > therefore be committed to git, nor show up in git diffs and the like. > > Signed-off-by: David Gibson Reviewed-by: Juan Quintela

[Qemu-devel] [PATCH v5 00/37] Migration errors & cleanup (the integrated version)

2011-10-19 Thread Juan Quintela
Hi v5: - addressed review comments: * Amit - move "return real error code" after has_error has got a negative value (i.e. from patch 3 to patch 11) * Kevin - return -errno, no errno. * Orit - return errno instead of EINVAL - once there, introduce some comments (more needed)

[Qemu-devel] [PATCH 10/37] migration: change has_error to contain errno values

2011-10-19 Thread Juan Quintela
We normally already have an errno value. When not, abuse EIO. Signed-off-by: Juan Quintela --- arch_init.c |2 +- block-migration.c | 11 ++- buffered_file.c |4 ++-- hw/hw.h |2 +- migration.c |2 +- savevm.c |8 6 files c

[Qemu-devel] [PATCH] Add linux-headers/asm to .gitignore

2011-10-19 Thread David Gibson
linux-headers/asm is a symlink generated during configure. It should not, therefore be committed to git, nor show up in git diffs and the like. Signed-off-by: David Gibson --- .gitignore |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/.gitignore b/.gitignore index 59c34

[Qemu-devel] [PATCH 23/37] migration: Introduce MIG_STATE_SETUP

2011-10-19 Thread Juan Quintela
Use MIG_STATE_ACTIVE only when migration has really started. Use this new state to setup migration parameters. Change defines for an anonymous struct. Signed-off-by: Juan Quintela --- migration.c |6 +- migration.h | 11 +++ 2 files changed, 12 insertions(+), 5 deletions(-)

[Qemu-devel] [PATCH 14/37] migration: use qemu_file_get_error() return value when possible

2011-10-19 Thread Juan Quintela
Signed-off-by: Juan Quintela --- arch_init.c |6 -- block-migration.c |7 --- buffered_file.c | 23 ++- savevm.c |4 ++-- 4 files changed, 24 insertions(+), 16 deletions(-) diff --git a/arch_init.c b/arch_init.c index 9128be0..98daaf3 10

[Qemu-devel] [PATCH 15/37] migration: make *save_live return errors

2011-10-19 Thread Juan Quintela
Make *save_live() return negative values when there is one error, and updates all callers to check for the error. Signed-off-by: Juan Quintela --- arch_init.c |9 +++-- block-migration.c | 17 +++-- savevm.c | 14 +++--- 3 files changed, 29 insertio

[Qemu-devel] [PATCH 05/37] migration: If there is one error, it makes no sense to continue

2011-10-19 Thread Juan Quintela
Once there, add a comment about what each error mean. Signed-off-by: Juan Quintela --- buffered_file.c | 12 +--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/buffered_file.c b/buffered_file.c index 486af57..94ecbbc 100644 --- a/buffered_file.c +++ b/buffered_file.c @

[Qemu-devel] Can qemu emulate IBM Power env?

2011-10-19 Thread Ryan Wang
If it can, where can I find the related instructions? thanks,

[Qemu-devel] KVM VMenter/exit cost

2011-10-19 Thread Xin Tong
Currently, when amd svm or intel vmx is used to run the guest os natively on the chip, a kernel enter and vmenter are needed, and when the guest os executes a trapping instruction, a vmexit and kernel exit is incurred. I would like to know the latest estimate of the cost of VMEnter/VMExit on the In

Re: [Qemu-devel] [PATCH] libcacard: Fix wrong assertion (reported by cppcheck)

2011-10-19 Thread Alon Levy
On Wed, Oct 19, 2011 at 09:03:22PM +0200, Stefan Weil wrote: > assert("...") will never do anything. This assertion handles a case > which should never occur, so it must be assert(!"..."). > Thanks, I'll pick it up for a pull request. > Cc: Alon Levy > Signed-off-by: Stefan Weil > --- > libca

Re: [Qemu-devel] gcc auto-omit-frame-pointer vs msvc longjmp

2011-10-19 Thread Richard Henderson
On 10/19/2011 02:05 PM, Bob Breuer wrote: > Is it possible to force a > stackframe by just adding a suitable attribute to either the setjmp > function prototype, or the function which calls setjmp? The only thing I can think of that'll be portable to a large number of versions of GCC is { i

[Qemu-devel] [Bug 739785] Re: qemu-i386 user mode on ARMv5 host fails (bash: fork: Invalid argument)

2011-10-19 Thread Peter Maydell
Steve: there are a number of issues with that patch: * x86 cpu_set_tls() doesn't belong in linux-user/syscall.c (but it's not trivial to put it in target-i386 because it's calling do_set_thread_area()) * it's not "obviously correct" and the author says it needs review, and I'd have to dig out i

Re: [Qemu-devel] gcc auto-omit-frame-pointer vs msvc longjmp

2011-10-19 Thread Bob Breuer
Kai Tietz wrote: > 2011/10/18 Bob Breuer : >> Kai Tietz wrote: >>> 2011/10/17 Bob Breuer : Richard Henderson wrote: > On 10/17/2011 07:09 AM, Bob Breuer wrote: >> Google finds a mention of longjmp failing with -fomit-frame-pointer: >> http://lua-users.org/lists/lua-l/2005-02/msg001

[Qemu-devel] [Bug 739785] Re: qemu-i386 user mode on ARMv5 host fails (bash: fork: Invalid argument)

2011-10-19 Thread Steve
This bug also pertains to armv7l. I have a Debian chroot install on my Android phone, and was trying to do an i386 chroot within my chroot (want to run the i386 specific binaries included in the Android SDK). I installed the qemu-user-static package (tried both v 0.14.1 and 0.15.0). When puttin

[Qemu-devel] [PATCH] libcacard: Fix wrong assertion (reported by cppcheck)

2011-10-19 Thread Stefan Weil
assert("...") will never do anything. This assertion handles a case which should never occur, so it must be assert(!"..."). Cc: Alon Levy Signed-off-by: Stefan Weil --- libcacard/card_7816.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libcacard/card_7816.c b/libcac

Re: [Qemu-devel] [PATCH] [v2] arm gic saving/loading fix

2011-10-19 Thread Peter Maydell
On 19 October 2011 15:10, Dmitry Koshelev wrote: > irq_target field saving/loading is in the wrong loop > version bump > > Signed-off-by: Dmitry Koshelev > --- >  hw/arm_gic.c |   16 >  1 files changed, 8 insertions(+), 8 deletions(-) > > @@ -744,5 +744,5 @@ static void gic_init(

Re: [Qemu-devel] [PATCH 00/26] AREG0 conversion

2011-10-19 Thread Richard Henderson
On 10/09/2011 12:20 PM, Blue Swirl wrote: >> I didn't bother to attach the patches, if someone wants to try, the >> patch set can be found here: >>git://repo.or.cz/qemu/blueswirl.git >>http://repo.or.cz/r/qemu/blueswirl.git > > I pushed the patch set to repo.or.cz so if someone wan

[Qemu-devel] [PATCH 2/2] hw/9pfs: Read-only support for 9p export

2011-10-19 Thread M. Mohan Kumar
From: "M. Mohan Kumar" A new fsdev parameter "readonly" is introduced to control accessing 9p export. readonly=on|off can be used to specify the access type. By default rw access is given to 9p export. Signed-off-by: M. Mohan Kumar --- Changes from previous version V4: * Updated on top of curr

[Qemu-devel] [PATCH 1/2] qemu: Add opt_set_bool functionality

2011-10-19 Thread M. Mohan Kumar
From: "M. Mohan Kumar" Signed-off-by: M. Mohan Kumar --- Changes from previous version: * Changed qemu_opt_{get|set}_bool to use 'bool' data type qemu-option.c | 43 +++ qemu-option.h |3 ++- 2 files changed, 41 insertions(+), 5 deletions(-) diff

Re: [Qemu-devel] [PATCH 1/2] hw/nand: reject read-only drives

2011-10-19 Thread Markus Armbruster
juha.riihim...@nokia.com writes: > From: Juha Riihimäki > > Signed-off-by: Juha Riihimäki > --- > hw/nand.c | 23 +++ > 1 files changed, 15 insertions(+), 8 deletions(-) > > diff --git a/hw/nand.c b/hw/nand.c > index c27783e..da6529d 100644 > --- a/hw/nand.c > +++ b/hw/nan

Re: [Qemu-devel] [PATCH] [v2] arm gic saving/loading fix

2011-10-19 Thread Andreas Färber
Dmitry, It would be nice to cc the people that have cared to review previous versions of the patch, Peter Maydell and me. Gets you quicker replies. Functional ARM patches are being reviewed by our ARM gurus and not by Stefan Hajnoczi, so please drop qemu-trivial from the cc list, as pointed out b

Re: [Qemu-devel] [PATCH 1/1 V6] qemu-kvm: fix improper nmi emulation

2011-10-19 Thread Lai Jiangshan
On 10/19/2011 05:29 PM, Avi Kivity wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 10/18/2011 09:41 PM, Jan Kiszka wrote: >> >> Looks OK to me. >> >> > > Same here. Who will merge it? Thanks, Lai > > - -- > I have a truly marvellous patch that fixes the bug which this > si

[Qemu-devel] [PATCH 6/8] block: take lock around bdrv_write implementations

2011-10-19 Thread Paolo Bonzini
This does the first part of the conversion to coroutines, by wrapping bdrv_write implementations to take the write side of the rwlock. Drivers that implement bdrv_write rather than bdrv_co_writev can then benefit from asynchronous operation (at least if the underlying protocol supports it, which i

[Qemu-devel] [PATCH 3/8] vmdk: clean up open

2011-10-19 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- block/vmdk.c | 37 +++-- 1 files changed, 15 insertions(+), 22 deletions(-) diff --git a/block/vmdk.c b/block/vmdk.c index 21566eb..12b38d2 100644 --- a/block/vmdk.c +++ b/block/vmdk.c @@ -622,20 +622,7 @@ static int vmdk_open_de

[Qemu-devel] [PATCH 1/1 V6] qemu: fix improper nmi emulation

2011-10-19 Thread Lai Jiangshan
On 10/19/2011 06:57 PM, Jan Kiszka wrote: >>> >>> Looks OK to me. >>> >>> Please don't forget to bake a qemu-only patch for those bits that apply >>> to upstream as well (ie. the user space APIC path). >>> >>> Jan >>> >> >> I did forget it. >> Did you mean we need to add "#ifdef KVM_CAP_IRQCHIP" b

[Qemu-devel] [PATCH 2/8] vmdk: fix return values of vmdk_parent_open

2011-10-19 Thread Paolo Bonzini
While vmdk_open_desc_file (touched by the patch) correctly changed -1 to -EINVAL, vmdk_open did not. Fix it directly in vmdk_parent_open. Signed-off-by: Paolo Bonzini --- block/vmdk.c | 11 ++- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/block/vmdk.c b/block/vmdk.c

[Qemu-devel] [PATCH V2 01/10] configure: Introduce --enable-xen-pci-passthrough.

2011-10-19 Thread Anthony PERARD
Signed-off-by: Anthony PERARD --- Makefile.target |2 ++ configure | 21 + 2 files changed, 23 insertions(+), 0 deletions(-) diff --git a/Makefile.target b/Makefile.target index 417f23e..c518103 100644 --- a/Makefile.target +++ b/Makefile.target @@ -208,6 +208,8 @

[Qemu-devel] [PATCH 1/8] vpc: detect floppy disk geometries

2011-10-19 Thread Paolo Bonzini
Converting a floppy image from RAW to VPC and back will generate a zero-padded file of the wrong size, because the geometry is not computed correctly. Special case floppy disk images, handling standard MS-DOS capacities (160/180/320/360 for low density 5.25" disks, 1200 for high density 5.25" disk

[Qemu-devel] [PATCH 8/8] block: change discard to co_discard

2011-10-19 Thread Paolo Bonzini
Since coroutine operation is now mandatory, convert both bdrv_discard implementations to coroutines. For qcow2, this means taking the lock around the operation. raw-posix remains synchronous. The bdrv_discard callback is then unused and can be eliminated. Signed-off-by: Paolo Bonzini --- bloc

[Qemu-devel] [PATCH 4/8] block: add a Rwlock to synchronous read/write drivers

2011-10-19 Thread Paolo Bonzini
The big conversion of bdrv_read/write to coroutines caused the two homonymous callbacks in BlockDriver to become reentrant. It goes like this: 1) bdrv_read is now called in a coroutine, and calls bdrv_read or bdrv_pread. 2) the nested bdrv_read goes through the fast path in bdrv_rw_co_entry; 3)

Re: [Qemu-devel] [PATCH V2 01/10] configure: Introduce --enable-xen-pci-passthrough.

2011-10-19 Thread Anthony PERARD
On Wed, Oct 19, 2011 at 15:48, Peter Maydell wrote: > On 19 October 2011 14:56, Anthony PERARD wrote: >> +if test "$xen_pci_passthrough" != "no"; then >> +  if test "$xen" = "yes" -a "$linux" = "yes"; then >> +    xen_pci_passthrough=yes >> +  else >> +    if test "$xen_pci_passthrough" = "yes";

[Qemu-devel] [PATCH 5/8] block: take lock around bdrv_read implementations

2011-10-19 Thread Paolo Bonzini
This does the first part of the conversion to coroutines, by wrapping bdrv_read implementations to take the read side of the rwlock. Drivers that implement bdrv_read rather than bdrv_co_readv can then benefit from asynchronous operation (at least if the underlying protocol supports it, which is no

[Qemu-devel] [PATCH 7/8] block: change flush to co_flush

2011-10-19 Thread Paolo Bonzini
Since coroutine operation is now mandatory, convert all bdrv_flush implementations to coroutines. For qcow2, this means taking the lock. Other implementations are simpler and just forward bdrv_flush to the underlying protocol, so they can avoid the lock. The bdrv_flush callback is then unused and

[Qemu-devel] [PATCH 0/8] finish coroutinization of drivers

2011-10-19 Thread Paolo Bonzini
Drivers that only implement the bdrv_read and bdrv_write callbacks were unwillingly converted to be reentrant when bdrv_read and bdrv_write were changed to always create coroutines. So, we need locks aroudn read and write operations. This series does this (patches 4-6) and removes the flush/disca

[Qemu-devel] [PATCH V2 10/10] Introduce Xen PCI Passthrough, MSI (3/3)

2011-10-19 Thread Anthony PERARD
From: Jiang Yunhong Signed-off-by: Jiang Yunhong Signed-off-by: Shan Haitao Signed-off-by: Anthony PERARD --- Makefile.target |1 + hw/apic-msidef.h |2 + hw/xen_pci_passthrough.h | 20 ++ hw/xen_pci_passthrough_msi.c | 667 +

[Qemu-devel] [PATCH V2 05/10] pci_regs: Fix value of PCI_EXP_TYPE_RC_EC.

2011-10-19 Thread Anthony PERARD
Value check in PCI Express Base Specification rev 1.1 Signed-off-by: Anthony PERARD --- hw/pci_regs.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/pci_regs.h b/hw/pci_regs.h index e8357c3..6b42515 100644 --- a/hw/pci_regs.h +++ b/hw/pci_regs.h @@ -393,7 +393,7 @@

[Qemu-devel] [PATCH V2 07/10] Introduce apic-msidef.h

2011-10-19 Thread Anthony PERARD
This patch move the msi definition from apic.c to apic-msidef.h. So it can be used also by other .c files. Signed-off-by: Anthony PERARD --- hw/apic-msidef.h | 28 hw/apic.c| 11 +-- 2 files changed, 29 insertions(+), 10 deletions(-) create mode

[Qemu-devel] [PATCH V2 06/10] pci_regs: Add PCI_EXP_TYPE_PCIE_BRIDGE

2011-10-19 Thread Anthony PERARD
Signed-off-by: Anthony PERARD --- hw/pci_regs.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/pci_regs.h b/hw/pci_regs.h index 6b42515..56a404b 100644 --- a/hw/pci_regs.h +++ b/hw/pci_regs.h @@ -392,6 +392,7 @@ #define PCI_EXP_TYPE_UPSTREAM 0x5 /* Upstream Port

Re: [Qemu-devel] [PATCH V2 01/10] configure: Introduce --enable-xen-pci-passthrough.

2011-10-19 Thread Peter Maydell
On 19 October 2011 14:56, Anthony PERARD wrote: > +if test "$xen_pci_passthrough" != "no"; then > +  if test "$xen" = "yes" -a "$linux" = "yes"; then > +    xen_pci_passthrough=yes > +  else > +    if test "$xen_pci_passthrough" = "yes"; then > +      feature_not_found "Xen PCI Passthrough without

[Qemu-devel] [PATCH V2 04/10] pci_ids: Add INTEL_82599_VF id.

2011-10-19 Thread Anthony PERARD
Signed-off-by: Anthony PERARD --- hw/pci_ids.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/pci_ids.h b/hw/pci_ids.h index 83f3893..2ea5ec2 100644 --- a/hw/pci_ids.h +++ b/hw/pci_ids.h @@ -117,6 +117,7 @@ #define PCI_DEVICE_ID_INTEL_82801I_UHCI6 0x2939 #define PCI

[Qemu-devel] [PATCH V2 00/10] Xen PCI Passthrough

2011-10-19 Thread Anthony PERARD
Hi all, This patch series introduce the PCI passthrough for Xen. First, we have HostPCIDevice that help to access one PCI device of the host. Then, there is an additions in the QEMU code, pci_check_bar_overlap. There are also several change in pci_ids and pci_regs. Last part, but not least, th

[Qemu-devel] [PATCH V2 03/10] pci.c: Add pci_check_bar_overlap

2011-10-19 Thread Anthony PERARD
From: Yuji Shimada This function help Xen PCI Passthrough device to check for overlap. Signed-off-by: Yuji Shimada Signed-off-by: Anthony PERARD --- hw/pci.c | 47 +++ hw/pci.h |3 +++ 2 files changed, 50 insertions(+), 0 deletions(-) diff --

[Qemu-devel] [PATCH V2 02/10] Introduce HostPCIDevice to access a pci device on the host.

2011-10-19 Thread Anthony PERARD
Signed-off-by: Anthony PERARD --- Makefile.target |1 + hw/host-pci-device.c | 245 ++ hw/host-pci-device.h | 75 +++ 3 files changed, 321 insertions(+), 0 deletions(-) create mode 100644 hw/host-pci-device.c create mode 10

[Qemu-devel] [PATCH] [v2] arm gic saving/loading fix

2011-10-19 Thread Dmitry Koshelev
irq_target field saving/loading is in the wrong loop version bump Signed-off-by: Dmitry Koshelev --- hw/arm_gic.c | 16 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/hw/arm_gic.c b/hw/arm_gic.c index 8286a28..d0747cf 100644 --- a/hw/arm_gic.c +++ b/hw/arm_gic.

[Qemu-devel] [PATCH V2 08/10] Introduce Xen PCI Passthrough, qdevice (1/3)

2011-10-19 Thread Anthony PERARD
From: Allen Kay Signed-off-by: Allen Kay Signed-off-by: Guy Zana Signed-off-by: Anthony PERARD --- Makefile.target |2 + hw/xen_pci_passthrough.c | 861 ++ hw/xen_pci_passthrough.h | 258 hw/xen_pci_passth

[Qemu-devel] [PATCH 4/5] savevm: qemu_savevm_state(): Drop stop VM logic

2011-10-19 Thread Luiz Capitulino
qemu_savevm_state() has some logic to stop the VM and to (or not to) resume it. But this seems to be a big noop, as qemu_savevm_state() is only called by do_savevm() when the VM is already stopped. So, let's drop qemu_savevm_state()'s stop VM logic. Reviewed-by: Michael Roth Reviewed-by: Kevin W

[Qemu-devel] [PATCH] integratorcp: convert control to sysbus

2011-10-19 Thread Benoît Canet
Signed-off-by: Benoit Canet --- hw/integratorcp.c | 20 +--- 1 files changed, 13 insertions(+), 7 deletions(-) diff --git a/hw/integratorcp.c b/hw/integratorcp.c index 7f79560..7ad68b7 100644 --- a/hw/integratorcp.c +++ b/hw/integratorcp.c @@ -393,6 +393,11 @@ static int icp_pi

Re: [Qemu-devel] [PATCH 1/1] Introduce a new bus "ICC" to connect APIC

2011-10-19 Thread Jan Kiszka
On 2011-10-19 15:33, Jan Kiszka wrote: > On 2011-10-19 14:54, Anthony Liguori wrote: >> On 10/19/2011 05:53 AM, Jan Kiszka wrote: >>> On 2011-10-19 03:55, pingf...@linux.vnet.ibm.com wrote: From: Liu Ping Fan Introduce a new structure CPUS as the controller of ICC (INTERRUPT CON

[Qemu-devel] [PATCH 5/5] runstate: Allow user to migrate twice

2011-10-19 Thread Luiz Capitulino
It should be a matter of allowing the transition POSTMIGRATE -> FINISH_MIGRATE, but it turns out that the VM won't do the transition the second time because it's already stopped. So this commit also adds vm_stop_force_state() which performs the transition even if the VM is already stopped. While

Re: [Qemu-devel] [PATCH 1/1] ACPI: Call ACPI remove handler when handling ACPI eject event

2011-10-19 Thread Gong Chen
On Wed, Oct 19, 2011 at 10:47 AM, wrote: > From: Liu Ping Fan > > Call the remove handler for ACPI_NOTIFY_EJECT_REQUEST > > Signed-off-by: Liu Ping Fan > --- >  drivers/acpi/bus.c      |    2 +- >  drivers/acpi/scan.c     |    2 +- >  include/acpi/acpi_bus.h |    2 ++ >  3 files changed, 4 inse

Re: [Qemu-devel] [PATCH V5] Add AACI audio playback support to the ARM Versatile/PB platform

2011-10-19 Thread Peter Maydell
On 19 October 2011 14:30, Peter Maydell wrote: > NB: this doesn't apply on current master for two reasons: > (1) something somewhere has added extra leading spaces > (2) the versatilepb patches don't seem to be against master > so don't apply for a trivial wrong-context reason Oops, (2) was me do

Re: [Qemu-devel] [PATCH 1/1] Introduce a new bus "ICC" to connect APIC

2011-10-19 Thread Jan Kiszka
On 2011-10-19 14:54, Anthony Liguori wrote: > On 10/19/2011 05:53 AM, Jan Kiszka wrote: >> On 2011-10-19 03:55, pingf...@linux.vnet.ibm.com wrote: >>> From: Liu Ping Fan >>> >>> Introduce a new structure CPUS as the controller of ICC (INTERRUPT >>> CONTROLLER COMMUNICATIONS), and new bus "ICC" to h

[Qemu-devel] [PATCH] hw/vexpress.c, hw/realview.c: Add PL041 to VExpress, Realview boards

2011-10-19 Thread Peter Maydell
Instantiate the PL041 audio on the Versatile Express and Realview board models. Signed-off-by: Peter Maydell --- This obviously is intended to be applied after Mathieu Sonet's PL041/AACI v5 patch. hw/realview.c |8 +++- hw/vexpress.c |7 ++- 2 files changed, 13 insertions(+), 2

[Qemu-devel] [PATCH 1/5] QMP: Fix blockdev-snapshot-sync doc example

2011-10-19 Thread Luiz Capitulino
Fix wrong command name. Reported-by: Eric Blake Signed-off-by: Luiz Capitulino --- qmp-commands.hx |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/qmp-commands.hx b/qmp-commands.hx index 9c11e87..4328e8b 100644 --- a/qmp-commands.hx +++ b/qmp-commands.hx @@ -710,

Re: [Qemu-devel] [PATCH V5] Add AACI audio playback support to the ARM Versatile/PB platform

2011-10-19 Thread Peter Maydell
On 18 October 2011 22:45, Mathieu Sonet wrote: > This driver emulates the ARM AACI interface (PL041) connected to a LM4549 > codec. > It enables audio playback for the Versatile/PB platform. > Signed-off-by: Mathieu Sonet Reviewed-by: Peter Maydell I'm about to send out the patch which adds t

Re: [Qemu-devel] [PATCH v2 21/35] scsi-disk: bump SCSIRequest reference count until aio completion runs

2011-10-19 Thread Paolo Bonzini
On 10/17/2011 05:37 PM, Paolo Bonzini wrote: In some cases a request may be canceled before the completion callback runs. Keep a reference to the request between starting an AIO operation, and let scsi_*_complete remove it. Since scsi_handle_rw_error returns whether something else has to be don

Re: [Qemu-devel] [PATCH 20/35] scsi-disk: do not complete requests twice

2011-10-19 Thread Paolo Bonzini
On 10/13/2011 01:03 PM, Paolo Bonzini wrote: When scsi_handle_rw_error reports a CHECK CONDITION code, the owner should not call scsi_req_complete. Signed-off-by: Paolo Bonzini --- hw/scsi-disk.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/hw/scsi-disk.c b/hw/sc

Re: [Qemu-devel] [PATCH] integratorcp: convert control to sysbus

2011-10-19 Thread Peter Maydell
2011/10/19 Benoît Canet : > Signed-off-by: Benoit Canet Reviewed-by: Peter Maydell Avi -- since this applies on top of the memory region conversions in your queue, do you want to take this patch too? Otherwise I'll just have to hold onto it until you land those... thanks -- PMM

[Qemu-devel] [PATCH 2/5] runstate: Print state transition when invalid

2011-10-19 Thread Luiz Capitulino
Makes it easier to debug. Signed-off-by: Luiz Capitulino --- vl.c |9 ++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/vl.c b/vl.c index 2dce3ae..2a634a7 100644 --- a/vl.c +++ b/vl.c @@ -393,9 +393,12 @@ void runstate_init(void) /* This function will abort() on inval

[Qemu-devel] [PATCH V2] integratorcp: convert control to sysbus

2011-10-19 Thread Benoît Canet
Convert control registers to sysbus. This version get rid of an unneeded comment. Benoît Canet (1): integratorcp: convert control to sysbus hw/integratorcp.c | 20 +--- 1 files changed, 13 insertions(+), 7 deletions(-) -- 1.7.5.4

[Qemu-devel] [RESEND PULL 0/5]: QMP queue

2011-10-19 Thread Luiz Capitulino
Anthony, I'm resending this pull request because Wen Congyang has found a bug in one of the patches. And also to ping you to pull it :-) The changes (since cfce6d8934243871c4dc6d0c5248b0b27a1b8d80) are available in the following repository: git://repo.or.cz/qemu/qmp-unstable.git queue/qmp L

[Qemu-devel] [PATCH 3/5] runstate: Allow to transition from paused to postmigrate

2011-10-19 Thread Luiz Capitulino
The user may already have paused the VM before starting the migration process. If s/he does that, then the state will be 'paused' when we finish the migration process. In that case we want to transition from 'paused' to 'postmigrate' as the latter is now the real reason why the VM is stopped. Sign

Re: [Qemu-devel] [PATCH 2/5] runstate: Print state transition when invalid

2011-10-19 Thread Luiz Capitulino
On Wed, 19 Oct 2011 08:43:33 +0800 Wen Congyang wrote: > At 10/15/2011 01:26 AM, Luiz Capitulino Write: > > Makes it easier to debug. > > > > Signed-off-by: Luiz Capitulino > > --- > > vl.c |4 +++- > > 1 files changed, 3 insertions(+), 1 deletions(-) > > > > diff --git a/vl.c b/vl.c > >

Re: [Qemu-devel] [PATCH 1/1] Introduce a new bus "ICC" to connect APIC

2011-10-19 Thread Anthony Liguori
On 10/19/2011 05:53 AM, Jan Kiszka wrote: On 2011-10-19 03:55, pingf...@linux.vnet.ibm.com wrote: From: Liu Ping Fan Introduce a new structure CPUS as the controller of ICC (INTERRUPT CONTROLLER COMMUNICATIONS), and new bus "ICC" to hold APIC,instead of sysbus. So we can support APIC hot-plug f

Re: [Qemu-devel] [PATCH] qxl: fix guest cursor tracking

2011-10-19 Thread Gerd Hoffmann
On 10/18/11 18:58, Yonit Halperin wrote: > (1) If the guest cursor command is empty, don't reload it after migration. > (2) Cleaning the guest cursor when it is released by > the spice server. In addition, explicitly reset the > cursor in spice upon destroying the primary surface > (was

Re: [Qemu-devel] [PATCH] integratorcp: convert control to sysbus

2011-10-19 Thread Peter Maydell
2011/10/19 Benoît Canet : > +static int icp_control_init(SysBusDevice *dev) >  { > -    MemoryRegion *io; > +    icp_control_state *s = FROM_SYSBUS(icp_control_state, dev); > > -    io = (MemoryRegion *)g_malloc0(sizeof(MemoryRegion)); > -    memory_region_init_io(io, &icp_control_ops, NULL, > +  

[Qemu-devel] [PATCH 03/18] pxa2xx: convert to memory API (part I)

2011-10-19 Thread Avi Kivity
Signed-off-by: Avi Kivity --- hw/pxa.h|1 + hw/pxa2xx.c | 116 -- 2 files changed, 49 insertions(+), 68 deletions(-) diff --git a/hw/pxa.h b/hw/pxa.h index 1204165..3fb070f 100644 --- a/hw/pxa.h +++ b/hw/pxa.h @@ -151,6 +151,7 @@ t

[Qemu-devel] [PATCH 11/18] spapr: convert to memory API

2011-10-19 Thread Avi Kivity
Signed-off-by: Avi Kivity --- hw/spapr.c |9 ++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/hw/spapr.c b/hw/spapr.c index b118975..63e5d33 100644 --- a/hw/spapr.c +++ b/hw/spapr.c @@ -41,6 +41,8 @@ #include "kvm.h" #include "kvm_ppc.h" +#include "exec-memory.h" +

[Qemu-devel] [PATCH 01/18] ppc_oldworld: convert to memory API

2011-10-19 Thread Avi Kivity
Signed-off-by: Avi Kivity --- hw/ppc_oldworld.c | 13 - 1 files changed, 8 insertions(+), 5 deletions(-) diff --git a/hw/ppc_oldworld.c b/hw/ppc_oldworld.c index ebcaafa..aac3526 100644 --- a/hw/ppc_oldworld.c +++ b/hw/ppc_oldworld.c @@ -73,11 +73,13 @@ static void ppc_heathrow_ini

[Qemu-devel] [PATCH 06/18] ppcr500_mpc8544ds: convert to memory API

2011-10-19 Thread Avi Kivity
Signed-off-by: Avi Kivity --- hw/ppce500_mpc8544ds.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/hw/ppce500_mpc8544ds.c b/hw/ppce500_mpc8544ds.c index 5bf8eab..51b6abd 100644 --- a/hw/ppce500_mpc8544ds.c +++ b/hw/ppce500_mpc8544ds.c @@ -229,6 +229,7 @@ static void

[Qemu-devel] [PATCH 07/18] r2d: convert to memory API

2011-10-19 Thread Avi Kivity
Signed-off-by: Avi Kivity --- hw/r2d.c | 35 +++ 1 files changed, 15 insertions(+), 20 deletions(-) diff --git a/hw/r2d.c b/hw/r2d.c index 82377a0..b65fd42 100644 --- a/hw/r2d.c +++ b/hw/r2d.c @@ -82,6 +82,7 @@ /* output pin */ qemu_irq irl; +MemoryR

[Qemu-devel] [PATCH 08/18] realview: convert to memory API

2011-10-19 Thread Avi Kivity
Signed-off-by: Avi Kivity --- hw/realview.c | 54 ++ 1 files changed, 26 insertions(+), 28 deletions(-) diff --git a/hw/realview.c b/hw/realview.c index 11ffb8a..14281b0 100644 --- a/hw/realview.c +++ b/hw/realview.c @@ -18,17 +18,20 @@ #inc

[Qemu-devel] [PATCH 10/18] sm501: convert to memory API

2011-10-19 Thread Avi Kivity
Signed-off-by: Avi Kivity --- hw/sm501.c | 143 +-- 1 files changed, 70 insertions(+), 73 deletions(-) diff --git a/hw/sm501.c b/hw/sm501.c index a7ed6fa..297bc9c 100644 --- a/hw/sm501.c +++ b/hw/sm501.c @@ -459,7 +459,7 @@ target_phy

[Qemu-devel] [PATCH 17/18] tc63963xb: convert to memory API

2011-10-19 Thread Avi Kivity
Signed-off-by: Avi Kivity --- hw/devices.h |3 +- hw/tc6393xb.c | 71 +--- hw/tosa.c |2 +- 3 files changed, 25 insertions(+), 51 deletions(-) diff --git a/hw/devices.h b/hw/devices.h index 8ac384f..1a55c1e 100644 --- a/hw/device

[Qemu-devel] [PATCH 16/18] syborg: convert to memory API

2011-10-19 Thread Avi Kivity
Signed-off-by: Avi Kivity --- hw/syborg.c |8 +--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/hw/syborg.c b/hw/syborg.c index bc200e4..248de54 100644 --- a/hw/syborg.c +++ b/hw/syborg.c @@ -26,6 +26,7 @@ #include "boards.h" #include "arm-misc.h" #include "net.h" +#i

[Qemu-devel] [PATCH 02/18] ppc_prep: convert to memory API

2011-10-19 Thread Avi Kivity
Signed-off-by: Avi Kivity --- hw/ppc_prep.c | 107 ++--- 1 files changed, 41 insertions(+), 66 deletions(-) diff --git a/hw/ppc_prep.c b/hw/ppc_prep.c index 6427baa..f22d5b9 100644 --- a/hw/ppc_prep.c +++ b/hw/ppc_prep.c @@ -116,16 +116,17 @@

[Qemu-devel] [PATCH 05/18] pci: simplify memory region registration

2011-10-19 Thread Avi Kivity
The two code paths (for ADDRESS_SPACE_IO and ADDRESS_SPACE_MEM) are identical. Unify them. Signed-off-by: Avi Kivity --- hw/pci.c | 13 ++--- 1 files changed, 2 insertions(+), 11 deletions(-) diff --git a/hw/pci.c b/hw/pci.c index 749e8d8..e8cc1b0 100644 --- a/hw/pci.c +++ b/hw/pci.c

[Qemu-devel] [PATCH 09/18] s390-virtio: convert to memory API

2011-10-19 Thread Avi Kivity
Signed-off-by: Avi Kivity --- hw/s390-virtio.c |8 +--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/hw/s390-virtio.c b/hw/s390-virtio.c index 778cffe..60c66e9 100644 --- a/hw/s390-virtio.c +++ b/hw/s390-virtio.c @@ -29,6 +29,7 @@ #include "hw/virtio.h" #include "hw/sy

[Qemu-devel] [PATCH 14/18] sun4m: convert to memory API

2011-10-19 Thread Avi Kivity
Signed-off-by: Avi Kivity --- hw/sun4m.c | 49 - 1 files changed, 32 insertions(+), 17 deletions(-) diff --git a/hw/sun4m.c b/hw/sun4m.c index 71bf648..314edc4 100644 --- a/hw/sun4m.c +++ b/hw/sun4m.c @@ -593,19 +593,25 @@ static void idreg_init(

[Qemu-devel] [PATCH 13/18] strongarm: convert to memory API

2011-10-19 Thread Avi Kivity
Signed-off-by: Avi Kivity --- hw/collie.c|4 +- hw/strongarm.c | 171 ++-- hw/strongarm.h |6 ++- 3 files changed, 75 insertions(+), 106 deletions(-) diff --git a/hw/collie.c b/hw/collie.c index a10cc1b..8dd6e4e 100644 --- a/hw/col

[Qemu-devel] [PATCH 12/18] spitz: convert to memory API

2011-10-19 Thread Avi Kivity
Signed-off-by: Avi Kivity --- hw/spitz.c | 48 ++-- 1 files changed, 18 insertions(+), 30 deletions(-) diff --git a/hw/spitz.c b/hw/spitz.c index 6f8a94c..23f9d41 100644 --- a/hw/spitz.c +++ b/hw/spitz.c @@ -49,6 +49,7 @@ typedef struct { Sys

[Qemu-devel] [PATCH 15/18] sun4u: convert to memory API

2011-10-19 Thread Avi Kivity
Signed-off-by: Avi Kivity --- hw/sun4u.c | 22 +- 1 files changed, 13 insertions(+), 9 deletions(-) diff --git a/hw/sun4u.c b/hw/sun4u.c index 96fc3d0..eaaefe3 100644 --- a/hw/sun4u.c +++ b/hw/sun4u.c @@ -574,6 +574,11 @@ static void pci_ebus_register(void) device_init(p

Re: [Qemu-devel] [Question] dump memory when host pci device is used by guest

2011-10-19 Thread Jan Kiszka
On 2011-10-19 04:04, KAMEZAWA Hiroyuki wrote: > On Tue, 18 Oct 2011 10:31:10 +0200 > Jan Kiszka wrote: > >> On 2011-10-18 10:31, Wen Congyang wrote: >>> At 10/18/2011 04:26 PM, Jan Kiszka Write: On 2011-10-18 10:25, Wen Congyang wrote: > At 10/18/2011 04:19 PM, Jan Kiszka Write: >> O

[Qemu-devel] [PATCH 04/18] pxa2xx: convert to memory API (part II)

2011-10-19 Thread Avi Kivity
Signed-off-by: Avi Kivity --- hw/pxa.h|5 ++ hw/pxa2xx.c | 148 -- 2 files changed, 66 insertions(+), 87 deletions(-) diff --git a/hw/pxa.h b/hw/pxa.h index 3fb070f..7e98384 100644 --- a/hw/pxa.h +++ b/hw/pxa.h @@ -122,6 +122,11 @@

[Qemu-devel] [PATCH 18/18] tcx: convert to memory API

2011-10-19 Thread Avi Kivity
Signed-off-by: Avi Kivity --- hw/tcx.c | 152 ++--- 1 files changed, 85 insertions(+), 67 deletions(-) diff --git a/hw/tcx.c b/hw/tcx.c index 309600d..cd24100 100644 --- a/hw/tcx.c +++ b/hw/tcx.c @@ -40,7 +40,15 @@ DisplayState *ds;

[Qemu-devel] [PATCH] integratorcp: convert control to sysbus

2011-10-19 Thread Benoît Canet
Signed-off-by: Benoit Canet --- hw/integratorcp.c | 19 +-- 1 files changed, 13 insertions(+), 6 deletions(-) diff --git a/hw/integratorcp.c b/hw/integratorcp.c index 7f79560..70fedbe 100644 --- a/hw/integratorcp.c +++ b/hw/integratorcp.c @@ -393,6 +393,11 @@ static int icp_pic

[Qemu-devel] [PATCH] integratorcp: convert control to sysbus

2011-10-19 Thread Benoît Canet
This patch convert the integratorcp control registers to sysbus. Benoît Canet (1): integratorcp: convert control to sysbus hw/integratorcp.c | 19 +-- 1 files changed, 13 insertions(+), 6 deletions(-) -- 1.7.5.4

Re: [Qemu-devel] [PATCH 1/2] Move graphic-related coalesced MMIO flushes to affected device models

2011-10-19 Thread Jan Kiszka
On 2011-10-19 11:04, Avi Kivity wrote: > > On 10/18/2011 09:50 PM, Jan Kiszka wrote: >> On 2011-10-18 19:34, Avi Kivity wrote: >>> On 10/18/2011 06:49 PM, Jan Kiszka wrote: On 2011-10-18 18:40, Avi Kivity wrote: > On 10/18/2011 04:30 PM, Avi Kivity wrote: >> This takes a while to repr

  1   2   >