Re: [Qemu-devel] [PATCH v4 0/7] file descriptor passing using pass-fd

2012-06-26 Thread Daniel P. Berrange
On Fri, Jun 22, 2012 at 02:36:07PM -0400, Corey Bryant wrote: libvirt's sVirt security driver provides SELinux MAC isolation for Qemu guest processes and their corresponding image files. In other words, sVirt uses SELinux to prevent a QEMU process from opening files that do not belong to it.

Re: [Qemu-devel] [PATCH v6 08/16] target-or32: Add instruction tanslation

2012-06-26 Thread Wei-Ren Chen
0x is -1, 0x8000 is -MAX. -1/-MAX ?will raise a exception, and I've handle this. -MAX/-1 ?will get a MAX, for max value of a register is -(-MAX)-1, so, it overflowed, I didn't handle this. Actually you did this with three brcondi in the else branch. The only thing left is

Re: [Qemu-devel] [RFC 3/3] memory/qmp: add set-memory-merge command

2012-06-26 Thread Daniel P. Berrange
On Mon, Jun 25, 2012 at 05:05:45PM -0500, Anthony Liguori wrote: On 06/25/2012 11:55 AM, Luiz Capitulino wrote: Allow to enable/disable memory merging during run-time. This is implemented by extending the qemu_set_mem_merge() function. To test on HMP: (qemu) set_memory_merge on

Re: [Qemu-devel] [PATCH v6 08/16] target-or32: Add instruction tanslation

2012-06-26 Thread Max Filippov
On Tue, Jun 26, 2012 at 1:14 PM, 陳韋任 (Wei-Ren Chen) che...@iis.sinica.edu.tw wrote: 0x is -1, 0x8000 is -MAX. -1/-MAX ?will raise a exception, and I've handle this. -1 / -MAX equals 0, it's not the issue here. -MAX/-1 ?will get a MAX, for max value of a register is -(-MAX)-1,

Re: [Qemu-devel] [RFC] Fixing the error failure

2012-06-26 Thread Daniel P. Berrange
On Tue, Jun 26, 2012 at 09:54:21AM +0200, Markus Armbruster wrote: Luiz Capitulino lcapitul...@redhat.com writes: On Thu, 21 Jun 2012 13:42:19 +0100 Daniel P. Berrange berra...@redhat.com wrote: [...] However, we'd change how we use 'desc' and our error classes. 'desc' would

Re: [Qemu-devel] [PATCH 4/4] virtio-rng: hardware random number generator device

2012-06-26 Thread Amit Shah
On (Mon) 25 Jun 2012 [17:59:28], Anthony Liguori wrote: On 06/25/2012 05:46 PM, Anthony Liguori wrote: From: Amit Shahamit.s...@redhat.com diff --git a/hw/virtio-pci.c b/hw/virtio-pci.c +static void virtio_rng_class_init(ObjectClass *klass, void *data) +{ +DeviceClass *dc =

Re: [Qemu-devel] [RFC] Fixing the error failure

2012-06-26 Thread Markus Armbruster
Daniel P. Berrange berra...@redhat.com writes: On Tue, Jun 26, 2012 at 09:54:21AM +0200, Markus Armbruster wrote: Luiz Capitulino lcapitul...@redhat.com writes: On Thu, 21 Jun 2012 13:42:19 +0100 Daniel P. Berrange berra...@redhat.com wrote: [...] In libvirt we have always reserved the

Re: [Qemu-devel] [PATCH v4 0/7] file descriptor passing using pass-fd

2012-06-26 Thread Kevin Wolf
Am 26.06.2012 11:10, schrieb Daniel P. Berrange: I was thinking about some of the sources complexity when using FD passing from libvirt and wanted to raise one idea for discussion before we continue. With this proposed series, we have usage akin to: 1. pass_fd FDSET={M} - returns a

Re: [Qemu-devel] [PATCH v12 10/13] Add xbzrle_encode_buffer and xbzrle_decode_buffer functions

2012-06-26 Thread Orit Wasserman
On 06/19/2012 09:08 PM, Eric Blake wrote: On 06/19/2012 09:43 AM, Orit Wasserman wrote: Signed-off-by: Benoit Hudzia benoit.hud...@sap.com Signed-off-by: Petter Svard pett...@cs.umu.se Signed-off-by: Aidan Shribman aidan.shrib...@sap.com Signed-off-by: Orit Wasserman owass...@redhat.com ---

[Qemu-devel] [PATCH v2] ahci: add -drive support

2012-06-26 Thread Alexander Graf
We've had support for creating AHCI devices using -device for a while now, but it's cumbersome to users. We really should provide an easier way for them to leverage the power of AHCI! So let's introduce a new if= option to -drive, giving users the same command line experience as for scsi or ide.

Re: [Qemu-devel] [RFC 1/3] memory: add -disable-mem-merge command-line option

2012-06-26 Thread Luiz Capitulino
On Tue, 26 Jun 2012 10:47:07 +0300 Avi Kivity a...@redhat.com wrote: On 06/25/2012 11:26 PM, Jan Kiszka wrote: On 2012-06-25 18:55, Luiz Capitulino wrote: Allow for disabling memory merge support (KSM on Linux), which is enabled by default otherwise. -machine mem_merge=on|off? It's

Re: [Qemu-devel] [RFC 3/3] memory/qmp: add set-memory-merge command

2012-06-26 Thread Luiz Capitulino
On Tue, 26 Jun 2012 10:25:22 +0100 Daniel P. Berrange berra...@redhat.com wrote: On Mon, Jun 25, 2012 at 05:05:45PM -0500, Anthony Liguori wrote: On 06/25/2012 11:55 AM, Luiz Capitulino wrote: Allow to enable/disable memory merging during run-time. This is implemented by extending the

Re: [Qemu-devel] [RFC 1/3] memory: add -disable-mem-merge command-line option

2012-06-26 Thread Jan Kiszka
On 2012-06-26 09:47, Avi Kivity wrote: On 06/25/2012 11:26 PM, Jan Kiszka wrote: On 2012-06-25 18:55, Luiz Capitulino wrote: Allow for disabling memory merge support (KSM on Linux), which is enabled by default otherwise. -machine mem_merge=on|off? It's a host property, not a guest

[Qemu-devel] [PATCH] target-arm: Fix typo that meant TTBR1 accesses went to TTBR0

2012-06-26 Thread Peter Maydell
Fix a copy-and-paste error in the register description for TTBR1 that meant it was a duplicate of TTBR0 rather than affecting the correct bit of CPU state. Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- Whoops. Spotted while I was looking at this bit of code for a different reason...

Re: [Qemu-devel] [PATCH 4/4] virtio-rng: hardware random number generator device

2012-06-26 Thread Anthony Liguori
On 06/26/2012 05:48 AM, Amit Shah wrote: On (Mon) 25 Jun 2012 [17:59:28], Anthony Liguori wrote: On 06/25/2012 05:46 PM, Anthony Liguori wrote: From: Amit Shahamit.s...@redhat.com diff --git a/hw/virtio-pci.c b/hw/virtio-pci.c +static void virtio_rng_class_init(ObjectClass *klass, void

Re: [Qemu-devel] [RFC 3/3] memory/qmp: add set-memory-merge command

2012-06-26 Thread Daniel P. Berrange
On Tue, Jun 26, 2012 at 09:53:32AM -0300, Luiz Capitulino wrote: On Tue, 26 Jun 2012 10:25:22 +0100 Daniel P. Berrange berra...@redhat.com wrote: On Mon, Jun 25, 2012 at 05:05:45PM -0500, Anthony Liguori wrote: On 06/25/2012 11:55 AM, Luiz Capitulino wrote: Allow to enable/disable

Re: [Qemu-devel] [PATCH 3/4] vl: add -object option to create QOM objects from the command line

2012-06-26 Thread Anthony Liguori
On 06/26/2012 03:42 AM, Markus Armbruster wrote: Anthony Liguorialigu...@us.ibm.com writes: This will create a new QOM object in the '/objects' path. Note that properties Long line, will look fugly in git-log. Please wrap at column 70-75. Okay, let me turn this around: How do people

Re: [Qemu-devel] [PATCH 0/4] qdev realize, -object, and -object-late

2012-06-26 Thread Anthony Liguori
On 06/26/2012 03:15 AM, Markus Armbruster wrote: Anthony Liguorialigu...@us.ibm.com writes: As part of implementing the virtio-rng backend support, I decided it was best to split off the generic part of the series to make review easier. This series does a few things. It adds a realized

Re: [Qemu-devel] [PATCH 0/4] qdev realize, -object, and -object-late

2012-06-26 Thread Eric Blake
On 06/26/2012 07:42 AM, Anthony Liguori wrote: Any particular reason for deleting the diffstat from your cover letter? I'm not deleting it. I typically just use git-send-email --compose which doesn't come with a diffstat. git send-email --cover-letter will add the diffstat. Why 'git

Re: [Qemu-devel] [PATCH v4 0/7] file descriptor passing using pass-fd

2012-06-26 Thread Corey Bryant
On 06/26/2012 05:10 AM, Daniel P. Berrange wrote: On Fri, Jun 22, 2012 at 02:36:07PM -0400, Corey Bryant wrote: libvirt's sVirt security driver provides SELinux MAC isolation for Qemu guest processes and their corresponding image files. In other words, sVirt uses SELinux to prevent a QEMU

Re: [Qemu-devel] [PATCH 3/4] vl: add -object option to create QOM objects from the command line

2012-06-26 Thread Andreas Färber
Am 26.06.2012 15:35, schrieb Anthony Liguori: On 06/26/2012 03:42 AM, Markus Armbruster wrote: Anthony Liguorialigu...@us.ibm.com writes: This will create a new QOM object in the '/objects' path. Note that properties Long line, will look fugly in git-log. Please wrap at column 70-75.

Re: [Qemu-devel] [PATCH v4 0/7] file descriptor passing using pass-fd

2012-06-26 Thread Daniel P. Berrange
On Tue, Jun 26, 2012 at 09:52:51AM -0400, Corey Bryant wrote: So now from a client's POV you'd have a flow like * drive_add file=/dev/fd/N FDSET={N} IIUC then drive_add would loop and pass each fd in the set via SCM_RIGHTS? Yes, you'd probably use the JSON to tell QEMU exactly how

Re: [Qemu-devel] [libvirt] [PATCH v4 0/7] file descriptor passing using pass-fd

2012-06-26 Thread Daniel P. Berrange
On Tue, Jun 26, 2012 at 03:11:40PM +0100, Daniel P. Berrange wrote: On Tue, Jun 26, 2012 at 09:52:51AM -0400, Corey Bryant wrote: So now from a client's POV you'd have a flow like * drive_add file=/dev/fd/N FDSET={N} IIUC then drive_add would loop and pass each fd in the set via

[Qemu-devel] Is *-bsd-user target broken?

2012-06-26 Thread Igor Mammedov
Hello Blue, I've tried to test if *-bsd-user target works but so far wasn't successful so far. I've tried qemu-1.x ports on the latest freebsd/openbsd and a freshly checked out qemu. If it works for you, could you tell: 1. what flavor of bsd you use for testing 2. what configure options

Re: [Qemu-devel] Is *-bsd-user target broken?

2012-06-26 Thread Andreas Färber
Am 26.06.2012 17:49, schrieb Igor Mammedov: Example of what I've did on FreeBSD, qemu with your recent patches and ld patch form qemu-devel port: # ./configure --enable-debug --disable-werror --target-list=i386-bsd-user # ./i386-bsd-user/qemu-i386 -strace -bsd FreeBSD -L / /bin/ls

Re: [Qemu-devel] Is *-bsd-user target broken?

2012-06-26 Thread Igor Mammedov
On 06/26/2012 05:56 PM, Andreas Färber wrote: Am 26.06.2012 17:49, schrieb Igor Mammedov: Example of what I've did on FreeBSD, qemu with your recent patches and ld patch form qemu-devel port: # ./configure --enable-debug --disable-werror --target-list=i386-bsd-user #

Re: [Qemu-devel] [libvirt] [PATCH v4 0/7] file descriptor passing using pass-fd

2012-06-26 Thread Corey Bryant
On 06/26/2012 11:03 AM, Daniel P. Berrange wrote: On Tue, Jun 26, 2012 at 03:11:40PM +0100, Daniel P. Berrange wrote: On Tue, Jun 26, 2012 at 09:52:51AM -0400, Corey Bryant wrote: So now from a client's POV you'd have a flow like * drive_add file=/dev/fd/N FDSET={N} IIUC then

Re: [Qemu-devel] [RFC] Fixing the error failure

2012-06-26 Thread Anthony Liguori
On 06/26/2012 06:21 AM, Markus Armbruster wrote: Daniel P. Berrangeberra...@redhat.com writes: On Tue, Jun 26, 2012 at 09:54:21AM +0200, Markus Armbruster wrote: Luiz Capitulinolcapitul...@redhat.com writes: On Thu, 21 Jun 2012 13:42:19 +0100 Daniel P. Berrangeberra...@redhat.com wrote:

[Qemu-devel] [PATCH v2 3/3] i386: KVM: List -cpu host and best in -cpu ?

2012-06-26 Thread Alexander Graf
The kvm_enabled() helper doesn't work in a function as early as -cpu ? yet. It also doesn't make sense to list the -cpu ? output conditional on the -enable-kvm parameter. So let's always mention -cpu host in the CPU list when KVM is supported on that configuration. In addition, this patch also

[Qemu-devel] [PATCH v2 1/3] KVM: Add new -cpu best

2012-06-26 Thread Alexander Graf
During discussions on whether to make -cpu host the default in SLE, I found myself disagreeing to the thought, because it potentially opens a big can of worms for potential bugs. But if I already am so opposed to it for SLE, how can it possibly be reasonable to default to -cpu host in upstream

[Qemu-devel] [PATCH v2 2/3] KVM: Use -cpu best as default on x86

2012-06-26 Thread Alexander Graf
When running QEMU without -cpu parameter, the user usually wants a sane default. So far, we're using the qemu64/qemu32 CPU type, which basically means the maximum TCG can emulate. That's a really good default when using TCG, but when running with KVM we much rather want a default saying the

[Qemu-devel] [Bug 1017793] [NEW] S3 Trio64V+ support

2012-06-26 Thread Tony Zhou
Public bug reported: Is it possible to add S3 Trio emulation to QEMU at all? Since 0.12.3 the Cirrus Logic seems no longer working properly (bad font render/corrupted video). Also, S3 is a widely supported device on many OSes and architectures, which will give more compatibility for QEMU.

[Qemu-devel] qemu as dynamic binary translation infrastructure

2012-06-26 Thread Liu Xin
Hi, community, our company uses QEMU as system emulator, to emulate our private-ISA processor and SoC. recently, we came up an idea to build a dynamic binary translator on top of current QEMU technology. please you guys in this community are experienced and your aforementioned advices are really

Re: [Qemu-devel] qemu-kvm-1.0 crashes with threaded vnc server?

2012-06-26 Thread Peter Lieven
On 13.03.2012 16:06, Alexander Graf wrote: On 13.03.2012, at 16:05, Corentin Chary wrote: On Tue, Mar 13, 2012 at 12:29 PM, Peter Lievenp...@dlh.net wrote: On 11.02.2012 09:55, Corentin Chary wrote: On Thu, Feb 9, 2012 at 7:08 PM, Peter Lievenp...@dlh.net wrote: Hi, is anyone aware if

Re: [Qemu-devel] net: RFC New Socket-Based, Switched Network Backend (QDES)

2012-06-26 Thread Mike Lovell
On 06/26/2012 02:29 AM, Stefan Hajnoczi wrote: On Mon, Jun 25, 2012 at 5:32 PM, Mike Lovell m...@dev-zero.net wrote: Oh. I forgot another reason why I decided to do this over using VDE. I'll do this one with an example. Say you have 3 virtual machines on 3 different hosts. Each host has a

[Qemu-devel] [PATCH v5 3/3] Change driftfix default value to slew

2012-06-26 Thread Crístian Viana
Windows 2008+ is very sensitive to missed ticks. The RTC is used by default as the time source. If driftfix is not enabled, Windows is prone to blue screening. Signed-off-by: Crístian Viana via...@linux.vnet.ibm.com --- hw/mc146818rtc.c |2 +- vl.c | 11 ++- 2 files

[Qemu-devel] [PATCH v5 2/3] Force driftfix=none on previous machines

2012-06-26 Thread Crístian Viana
The current value for the -rtc driftfix option is 'none'. This patch makes sure that the old machines configuration will work the same way even after that option changes its default value. Signed-off-by: Crístian Viana via...@linux.vnet.ibm.com --- hw/pc_piix.c |4 1 file changed, 4

[Qemu-devel] [PATCH v5 1/3] Check if GlobalProperty exists before registering

2012-06-26 Thread Crístian Viana
If a GlobalProperty has already been registered, it won't have its value overwritten. Signed-off-by: Crístian Viana via...@linux.vnet.ibm.com --- Changes since v4: - Only register a GlobalProperty if it hasn't already been registered. That avoids the property values to be overwritten (fix

Re: [Qemu-devel] [PATCH] bitops.h: Add field32() and field64() functions to extract bitfields

2012-06-26 Thread Blue Swirl
On Mon, Jun 25, 2012 at 7:38 PM, Peter Maydell peter.mayd...@linaro.org wrote: Add field32() and field64() functions which extract a particular bit field from a word and return it. Based on an idea by Jia Liu. Suggested-by: Jia Liu pro...@gmail.com Signed-off-by: Peter Maydell

Re: [Qemu-devel] [PATCH 3/4] vl: add -object option to create QOM objects from the command line

2012-06-26 Thread Blue Swirl
On Mon, Jun 25, 2012 at 10:43 PM, Anthony Liguori aligu...@us.ibm.com wrote: This will create a new QOM object in the '/objects' path.  Note that properties are set in order which allows for simple objects to be initialized entirely with this option and then realized. This option is roughly

Re: [Qemu-devel] [PATCH] bitops.h: Add field32() and field64() functions to extract bitfields

2012-06-26 Thread Peter Maydell
On 26 June 2012 18:58, Blue Swirl blauwir...@gmail.com wrote: On Mon, Jun 25, 2012 at 7:38 PM, Peter Maydell peter.mayd...@linaro.org wrote: +static inline uint64_t field64(uint64_t value, int start, int length) start and length could be unsigned. They could be, but is there any reason why

Re: [Qemu-devel] Is *-bsd-user target broken?

2012-06-26 Thread Blue Swirl
On Tue, Jun 26, 2012 at 3:49 PM, Igor Mammedov imamm...@redhat.com wrote: Hello Blue, I've tried to test if *-bsd-user target works but so far wasn't successful so far. I've tried qemu-1.x ports on the latest freebsd/openbsd and a freshly checked out qemu. If it works for you, could you

Re: [Qemu-devel] [PATCH 3/4] vl: add -object option to create QOM objects from the command line

2012-06-26 Thread Peter Maydell
On 26 June 2012 14:35, Anthony Liguori aligu...@us.ibm.com wrote: On 06/26/2012 03:42 AM, Markus Armbruster wrote: Long line, will look fugly in git-log.  Please wrap at column 70-75. How do people normally limit this beyond just eye-balling? Same way I avoid overly long lines in usenet posts

Re: [Qemu-devel] [PATCH] bitops.h: Add field32() and field64() functions to extract bitfields

2012-06-26 Thread Blue Swirl
On Tue, Jun 26, 2012 at 6:11 PM, Peter Maydell peter.mayd...@linaro.org wrote: On 26 June 2012 18:58, Blue Swirl blauwir...@gmail.com wrote: On Mon, Jun 25, 2012 at 7:38 PM, Peter Maydell peter.mayd...@linaro.org wrote: +static inline uint64_t field64(uint64_t value, int start, int length)

Re: [Qemu-devel] [PATCH] bitops.h: Add field32() and field64() functions to extract bitfields

2012-06-26 Thread Peter Maydell
On 26 June 2012 19:25, Blue Swirl blauwir...@gmail.com wrote: On Tue, Jun 26, 2012 at 6:11 PM, Peter Maydell peter.mayd...@linaro.org wrote: On 26 June 2012 18:58, Blue Swirl blauwir...@gmail.com wrote: On Mon, Jun 25, 2012 at 7:38 PM, Peter Maydell peter.mayd...@linaro.org wrote: +static

Re: [Qemu-devel] [libvirt] [PATCH v4 0/7] file descriptor passing using pass-fd

2012-06-26 Thread Corey Bryant
On 06/26/2012 11:37 AM, Corey Bryant wrote: On 06/26/2012 11:03 AM, Daniel P. Berrange wrote: On Tue, Jun 26, 2012 at 03:11:40PM +0100, Daniel P. Berrange wrote: On Tue, Jun 26, 2012 at 09:52:51AM -0400, Corey Bryant wrote: So now from a client's POV you'd have a flow like *

[Qemu-devel] KVM call minutes (2012-06-26)

2012-06-26 Thread Juan Quintela
Hi This are the minutes for Today call - q35 integration why not ICH10? ICH9 is already obsolete. what are the differences? We need to check guests from Windows XP and some *BSD. Having it default for 1.2? Anthony. Having is as an option in 1.2 and make it defalut in 1.3. Alex?

Re: [Qemu-devel] [PATCH 3/4] vl: add -object option to create QOM objects from the command line

2012-06-26 Thread Markus Armbruster
Anthony Liguori aligu...@us.ibm.com writes: On 06/26/2012 03:42 AM, Markus Armbruster wrote: Anthony Liguorialigu...@us.ibm.com writes: This will create a new QOM object in the '/objects' path. Note that properties Long line, will look fugly in git-log. Please wrap at column 70-75.

Re: [Qemu-devel] [PATCH] bitops.h: Add field32() and field64() functions to extract bitfields

2012-06-26 Thread Blue Swirl
On Tue, Jun 26, 2012 at 6:41 PM, Peter Maydell peter.mayd...@linaro.org wrote: On 26 June 2012 19:25, Blue Swirl blauwir...@gmail.com wrote: On Tue, Jun 26, 2012 at 6:11 PM, Peter Maydell peter.mayd...@linaro.org wrote: On 26 June 2012 18:58, Blue Swirl blauwir...@gmail.com wrote: On Mon,

Re: [Qemu-devel] [PATCH] kvm: First step to push iothread lock out of inner run loop

2012-06-26 Thread Marcelo Tosatti
On Sat, Jun 23, 2012 at 12:55:49AM +0200, Jan Kiszka wrote: Should have declared this [RFC] in the subject and CC'ed kvm... On 2012-06-23 00:45, Jan Kiszka wrote: This sketches a possible path to get rid of the iothread lock on vmexits in KVM mode. On x86, the the in-kernel irqchips has to

Re: [Qemu-devel] [PATCH v3 5/6] qapi: convert sendkey

2012-06-26 Thread Luiz Capitulino
On Wed, 20 Jun 2012 12:47:40 +0800 Amos Kong ak...@redhat.com wrote: Convert 'sendkey' to use QAPI. do_sendkey() depends on some variables/functions in monitor.c, so reserve qmp_sendkey() to monitor.c key_defs[] in monitor.c is the mapping of key name to keycode, Keys' order in the enmu

Re: [Qemu-devel] [PATCH v3 5/6] qapi: convert sendkey

2012-06-26 Thread Luiz Capitulino
On Wed, 20 Jun 2012 06:53:40 -0600 Eric Blake ebl...@redhat.com wrote: On 06/19/2012 10:47 PM, Amos Kong wrote: Convert 'sendkey' to use QAPI. do_sendkey() depends on some variables/functions in monitor.c, so reserve qmp_sendkey() to monitor.c key_defs[] in monitor.c is the mapping of

Re: [Qemu-devel] [PATCH 1/4] dump: create writable files

2012-06-26 Thread Luiz Capitulino
On Wed, 20 Jun 2012 22:58:20 +0530 Rabin Vincent ra...@rab.in wrote: Make dump-guest-memory not create read-only files, so that it can overwrite a file created by a previous invocation without having it to be removed externally. I think we need a force parameter to do this, the command

Re: [Qemu-devel] [libvirt] [PATCH v4 0/7] file descriptor passing using pass-fd

2012-06-26 Thread Daniel P. Berrange
On Tue, Jun 26, 2012 at 02:40:03PM -0400, Corey Bryant wrote: On 06/26/2012 11:37 AM, Corey Bryant wrote: On 06/26/2012 11:03 AM, Daniel P. Berrange wrote: On Tue, Jun 26, 2012 at 03:11:40PM +0100, Daniel P. Berrange wrote: On Tue, Jun 26, 2012 at 09:52:51AM -0400, Corey Bryant wrote:

Re: [Qemu-devel] [PATCH v4 2/7] qapi: Convert getfd and closefd

2012-06-26 Thread Luiz Capitulino
On Fri, 22 Jun 2012 14:36:09 -0400 Corey Bryant cor...@linux.vnet.ibm.com wrote: Signed-off-by: Corey Bryant cor...@linux.vnet.ibm.com If this patch doesn't change anymore you can add: Reviewed-by: Luiz Capitulino lcapitul...@redhat.com --- v2: -Convert getfd and closefd to QAPI

Re: [Qemu-devel] [PATCH v4 4/7] qapi: Re-arrange monitor.c functions

2012-06-26 Thread Luiz Capitulino
On Fri, 22 Jun 2012 14:36:11 -0400 Corey Bryant cor...@linux.vnet.ibm.com wrote: Signed-off-by: Corey Bryant cor...@linux.vnet.ibm.com --- v4: -This patch is new in v4. Can you explain why it's needed? monitor.c | 40 1 file changed, 20

[Qemu-devel] [PATCH 2/4] file_ram_alloc: change length argument to size_t

2012-06-26 Thread Eduardo Habkost
While we are at it, rename it to length, as memory doesn't mean anything. Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- exec.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/exec.c b/exec.c index 8244d54..5f3b265 100644 --- a/exec.c +++ b/exec.c @@

[Qemu-devel] [PATCH 1/4] vl.c: change mem_prealloc to bool

2012-06-26 Thread Eduardo Habkost
Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- cpu-all.h |2 +- vl.c |4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cpu-all.h b/cpu-all.h index 9dc249a..2beed5a 100644 --- a/cpu-all.h +++ b/cpu-all.h @@ -490,7 +490,7 @@ typedef struct RAMList {

[Qemu-devel] [PATCH RFC 4/4] add -keep-mem-path-files option

2012-06-26 Thread Eduardo Habkost
This make QEMU create files inside the -mem-path directory using more predictable names, and not remove them afterwards. This allow (for example) users or management layers to use numactl later, to set NUMA policy for the guest RAM. Signed-off-by: Eduardo Habkost ehabk...@redhat.com ---

[Qemu-devel] [PATCH RFC 0/4] option to not remove files inside -mem-path dir

2012-06-26 Thread Eduardo Habkost
I was investigating if there are any mechanisms that allow manually pinning of guest RAM to specific host NUMA nodes, in the case of multi-node KVM guests, and noticed that -mem-path could be used for that, except that it currently removes any files it creates (using mkstemp()) immediately, not

[Qemu-devel] [PATCH 3/4] file_ram_alloc(): extract temporary-file creation code to separate function

2012-06-26 Thread Eduardo Habkost
Signed-off-by: Eduardo Habkost ehabk...@redhat.com --- exec.c | 35 +-- 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/exec.c b/exec.c index 5f3b265..dcbe4e1 100644 --- a/exec.c +++ b/exec.c @@ -2353,11 +2353,34 @@ static long

Re: [Qemu-devel] [PATCH v4 2/7] qapi: Convert getfd and closefd

2012-06-26 Thread Corey Bryant
On 06/26/2012 04:44 PM, Luiz Capitulino wrote: On Fri, 22 Jun 2012 14:36:09 -0400 Corey Bryant cor...@linux.vnet.ibm.com wrote: Signed-off-by: Corey Bryant cor...@linux.vnet.ibm.com If this patch doesn't change anymore you can add: Reviewed-by: Luiz Capitulino lcapitul...@redhat.com

Re: [Qemu-devel] [PATCH v4 0/7] file descriptor passing using pass-fd

2012-06-26 Thread Luiz Capitulino
On Tue, 26 Jun 2012 13:45:52 +0200 Kevin Wolf kw...@redhat.com wrote: Am 26.06.2012 11:10, schrieb Daniel P. Berrange: I was thinking about some of the sources complexity when using FD passing from libvirt and wanted to raise one idea for discussion before we continue. With this

Re: [Qemu-devel] Request VFIO inclusion in linux-next

2012-06-26 Thread Benjamin Herrenschmidt
On Mon, 2012-06-25 at 22:55 -0600, Alex Williamson wrote: Hi, VFIO has been kicking around for well over a year now and has been posted numerous times for review. The pre-requirements are finally available in linux-next (or will be in the 20120626 build) so I'd like to request a new branch

Re: [Qemu-devel] [PATCH v4 4/7] qapi: Re-arrange monitor.c functions

2012-06-26 Thread Corey Bryant
On 06/26/2012 04:45 PM, Luiz Capitulino wrote: On Fri, 22 Jun 2012 14:36:11 -0400 Corey Bryant cor...@linux.vnet.ibm.com wrote: Signed-off-by: Corey Bryant cor...@linux.vnet.ibm.com --- v4: -This patch is new in v4. Can you explain why it's needed? This just made patch 3/7 easier to

Re: [Qemu-devel] [PATCH v4 2/7] qapi: Convert getfd and closefd

2012-06-26 Thread Luiz Capitulino
On Tue, 26 Jun 2012 17:15:05 -0400 Corey Bryant cor...@linux.vnet.ibm.com wrote: On 06/26/2012 04:44 PM, Luiz Capitulino wrote: On Fri, 22 Jun 2012 14:36:09 -0400 Corey Bryant cor...@linux.vnet.ibm.com wrote: Signed-off-by: Corey Bryant cor...@linux.vnet.ibm.com If this patch

Re: [Qemu-devel] [PATCH v4 4/7] qapi: Re-arrange monitor.c functions

2012-06-26 Thread Luiz Capitulino
On Tue, 26 Jun 2012 17:16:28 -0400 Corey Bryant cor...@linux.vnet.ibm.com wrote: On 06/26/2012 04:45 PM, Luiz Capitulino wrote: On Fri, 22 Jun 2012 14:36:11 -0400 Corey Bryant cor...@linux.vnet.ibm.com wrote: Signed-off-by: Corey Bryant cor...@linux.vnet.ibm.com --- v4: -This

Re: [Qemu-devel] [PATCH v4 4/7] qapi: Re-arrange monitor.c functions

2012-06-26 Thread Corey Bryant
On 06/26/2012 05:28 PM, Luiz Capitulino wrote: On Tue, 26 Jun 2012 17:16:28 -0400 Corey Bryant cor...@linux.vnet.ibm.com wrote: On 06/26/2012 04:45 PM, Luiz Capitulino wrote: On Fri, 22 Jun 2012 14:36:11 -0400 Corey Bryant cor...@linux.vnet.ibm.com wrote: Signed-off-by: Corey Bryant

Re: [Qemu-devel] [PATCH v4 2/7] qapi: Convert getfd and closefd

2012-06-26 Thread Corey Bryant
On 06/26/2012 05:28 PM, Luiz Capitulino wrote: On Tue, 26 Jun 2012 17:15:05 -0400 Corey Bryant cor...@linux.vnet.ibm.com wrote: On 06/26/2012 04:44 PM, Luiz Capitulino wrote: On Fri, 22 Jun 2012 14:36:09 -0400 Corey Bryant cor...@linux.vnet.ibm.com wrote: Signed-off-by: Corey Bryant

Re: [Qemu-devel] [PATCH v4 0/7] file descriptor passing using pass-fd

2012-06-26 Thread Corey Bryant
On 06/26/2012 04:50 PM, Luiz Capitulino wrote: On Tue, 26 Jun 2012 13:45:52 +0200 Kevin Wolf kw...@redhat.com wrote: Am 26.06.2012 11:10, schrieb Daniel P. Berrange: I was thinking about some of the sources complexity when using FD passing from libvirt and wanted to raise one idea for

[Qemu-devel] [PATCH 6/6] sheepdog: traverse pending_list from the first for each time

2012-06-26 Thread MORITA Kazutaka
The pending list can be modified in other coroutine context sd_co_rw_vector, so we need to traverse the list from the first again after we send the pending request. Signed-off-by: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp --- block/sheepdog.c | 22 -- 1 files changed,

Re: [Qemu-devel] [PULL 0/6] usb patch queue.

2012-06-26 Thread Anthony Liguori
On 06/20/2012 09:05 AM, Gerd Hoffmann wrote: Hi, This is the usb patch queue, featuring live migration support for ehci and usb-host. Also as usual some small bugfixes. pleae pull, Gerd Pulled. Thanks. Regards, Anthony Liguori The following changes since commit

Re: [Qemu-devel] [PULL] Xen PCI Passthrough

2012-06-26 Thread Anthony Liguori
On 06/21/2012 11:13 AM, Stefano Stabellini wrote: Anthony, please pull Anthony Perard's Xen PCI Passthrough series from: git://xenbits.xen.org/people/sstabellini/qemu-dm.git xen-pt All the generic patches have been acked by Michael, the Xen patches have been reviewed by Konrad and me.

Re: [Qemu-devel] [PULL] Xen compile fixes

2012-06-26 Thread Anthony Liguori
On 06/21/2012 11:17 AM, Stefano Stabellini wrote: Anthony, please pull a couple of small Xen compile fixes to compile against xen-unstable: git://xenbits.xen.org/people/sstabellini/qemu-dm.git compile-xs Pulled. Thanks. Regards, Anthony Liguori Anthony PERARD (2): xen:

Re: [Qemu-devel] [PULL] qemu-ga patches for guest-fstrim command

2012-06-26 Thread Anthony Liguori
On 06/21/2012 06:04 PM, Michael Roth wrote: The following changes since commit 47ecbdf07ed2c37bdfd2d77137d01bb319ce13da: libcacard: build fixes (2012-06-21 20:04:24 +) are available in the git repository at: git://github.com/mdroth/qemu.git qga-pull-6-21-12 Pulled. Thanks.

Re: [Qemu-devel] [PULL 00/10] spice patch queue: qxl vga bits

2012-06-26 Thread Anthony Liguori
On 06/22/2012 04:25 AM, Gerd Hoffmann wrote: Hi, The spice patch queue carries a few vga bits this time, specifically it makes the vga ram size configurable. There are also a few qxl bugfixes and cleanups. Pulled. Thanks. Regards, Anthony Liguori please pull, Gerd Alon Levy (6):

Re: [Qemu-devel] [PULL 00/12] Trivial patches for June 9 to 22 2012

2012-06-26 Thread Anthony Liguori
On 06/22/2012 04:39 AM, Stefan Hajnoczi wrote: The following changes since commit 47ecbdf07ed2c37bdfd2d77137d01bb319ce13da: libcacard: build fixes (2012-06-21 20:04:24 +) are available in the git repository at: git://github.com/stefanha/qemu.git trivial-patches for you to fetch

[Qemu-devel] [PATCH 3/6] sheepdog: use coroutine based socket functions in coroutine context

2012-06-26 Thread MORITA Kazutaka
This removes blocking network I/Os in coroutine context. Signed-off-by: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp --- block/sheepdog.c | 10 -- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/block/sheepdog.c b/block/sheepdog.c index 0b49c6d..5dc1d7a 100644 ---

[Qemu-devel] [PATCH 0/6] sheepdog: various fixes

2012-06-26 Thread MORITA Kazutaka
See individual patches for details. MORITA Kazutaka (6): sheepdog: fix dprintf format strings sheepdog: restart I/O when socket becomes ready in do_co_req() sheepdog: use coroutine based socket functions in coroutine context sheepdog: make sure we don't free aiocb before sending all

Re: [Qemu-devel] [libvirt] [PATCH v4 0/7] file descriptor passing using pass-fd

2012-06-26 Thread Corey Bryant
On 06/26/2012 04:42 PM, Daniel P. Berrange wrote: On Tue, Jun 26, 2012 at 02:40:03PM -0400, Corey Bryant wrote: On 06/26/2012 11:37 AM, Corey Bryant wrote: On 06/26/2012 11:03 AM, Daniel P. Berrange wrote: On Tue, Jun 26, 2012 at 03:11:40PM +0100, Daniel P. Berrange wrote: On Tue, Jun

Re: [Qemu-devel] [PATCH v4 0/7] file descriptor passing using pass-fd

2012-06-26 Thread Eric Blake
On 06/26/2012 04:28 PM, Corey Bryant wrote: With this proposed series, we have usage akin to: 1. pass_fd FDSET={M} - returns a string /dev/fd/N showing QEMU's view of the FD 2. drive_add file=/dev/fd/N 3. if failure: close_fd /dev/fd/N In fact, there are more

[Qemu-devel] [PATCH 1/6] sheepdog: fix dprintf format strings

2012-06-26 Thread MORITA Kazutaka
This fixes warnings about dprintf format in debug mode. Signed-off-by: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp --- block/sheepdog.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/block/sheepdog.c b/block/sheepdog.c index 8877f45..afd06aa 100644 ---

[Qemu-devel] [PATCH 4/6] sheepdog: make sure we don't free aiocb before sending all requests

2012-06-26 Thread MORITA Kazutaka
This patch increments the pending counter before sending requests, and make sures that aiocb is not freed while sending them. Signed-off-by: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp --- block/sheepdog.c | 29 - 1 files changed, 16 insertions(+), 13 deletions(-)

[Qemu-devel] [PATCH 5/6] sheepdog: split outstanding list into inflight and pending

2012-06-26 Thread MORITA Kazutaka
outstanding_list_head is used for both pending and inflight requests. This patch splits it and improves readability. Signed-off-by: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp --- block/sheepdog.c | 49 - 1 files changed, 24 insertions(+), 25

[Qemu-devel] [PATCH 2/6] sheepdog: restart I/O when socket becomes ready in do_co_req()

2012-06-26 Thread MORITA Kazutaka
Currently, no one reenters the yielded coroutine. This fixes it. Signed-off-by: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp --- block/sheepdog.c | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/block/sheepdog.c b/block/sheepdog.c index afd06aa..0b49c6d

[Qemu-devel] Possible qemu gpl license violation

2012-06-26 Thread Alan Nelson
I read a thread ARM binary code translator on android-x86 Google Group ( https://groups.google.com/forum/?fromgroups#!topic/android-x86/_3HoNJTi_Y0). It is mentioned that Bluestacks (www.bluestacks.com) uses qemu for an arm binary translator in its software that runs Android apps. I downloaded the

Re: [Qemu-devel] Request VFIO inclusion in linux-next

2012-06-26 Thread Stephen Rothwell
Hi Alex, On Mon, 25 Jun 2012 22:55:52 -0600 Alex Williamson alex.william...@redhat.com wrote: VFIO has been kicking around for well over a year now and has been posted numerous times for review. The pre-requirements are finally available in linux-next (or will be in the 20120626 build) so

[Qemu-devel] buildbot failure in qemu on block_openbsd_4.9

2012-06-26 Thread qemu
The Buildbot has detected a new failure on builder block_openbsd_4.9 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/block_openbsd_4.9/builds/249 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: kraxel_openbsd49 Build

[Qemu-devel] buildbot failure in qemu on block_openbsd_current

2012-06-26 Thread qemu
The Buildbot has detected a new failure on builder block_openbsd_current while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/block_openbsd_current/builds/262 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build:

Re: [Qemu-devel] qemu as dynamic binary translation infrastructure

2012-06-26 Thread Wei-Ren Chen
Hi Liu, You might find this thread interesting, http://lists.gnu.org/archive/html/qemu-devel/2012-06/msg04351.html Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage:

Re: [Qemu-devel] [RFC] block: Removed coroutine ownership assumption

2012-06-26 Thread Peter Crosthwaite
Ping! Any Further thoughts Kevin? This thread flew off on a tangent over whether or not coroutines should be depracated. Seems to be the answer there was no on that front - coroutines are here to stay. I still think this thread points out a major flaw in block+coroutines, regardless of the fact

[Qemu-devel] [PATCH 2/3] hw/exynos4210_pwm.c: Fix STOP status in tick handler.

2012-06-26 Thread Evgeny Voevodin
START/STOP bit was not cleaned correctly. Signed-off-by: Evgeny Voevodin e.voevo...@samsung.com --- hw/exynos4210_pwm.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/exynos4210_pwm.c b/hw/exynos4210_pwm.c index 6243e59..0c22828 100644 --- a/hw/exynos4210_pwm.c +++

[Qemu-devel] [PATCH 0/3] ARM: Exynos4210 bugfixes

2012-06-26 Thread Evgeny Voevodin
First patch is on the list: http://lists.gnu.org/archive/html/qemu-devel/2012-06/msg03717.html It fixes a critical bug in MCT that leads to hanged linux kernel v3.0. I preferred to pick this patch into this patch set. Second patch fixes STOP status bit setting in PWM (not critical only since

[Qemu-devel] [PATCH 3/3] hw/exynos4210.c: Fix misleading initialization of IROM mirror

2012-06-26 Thread Evgeny Voevodin
We want to mirror whole IROM and should pass zero instead of EXYNOS4210_IROM_BASE_ADDR (though it equals to zero too) since memory_region_init_alias takes an offset within an original region as an argument. Signed-off-by: Evgeny Voevodin e.voevo...@samsung.com --- hw/exynos4210.c |2 +- 1

[Qemu-devel] [PATCH 1/3] ARM: hw/exynos4210_mct.c: Fix a bug which hangs Linux kernel.

2012-06-26 Thread Evgeny Voevodin
From: Stanislav Vorobiov s.vorob...@samsung.com After some long period of time Linux kernel hanged due to ptimer_get_count may return 0 before timer interrupt occurs, thus, causing FRC to jump back in time Signed-off-by: Evgeny Voevodin e.voevo...@samsung.com --- hw/exynos4210_mct.c |4

Re: [Qemu-devel] [RFC PATCH V1 1/2] arm_boot: added linux switch

2012-06-26 Thread Peter Crosthwaite
Ping! Whats the action item here? Put out an RFC about unifying bootloaders or some such? Regards, Peter On Mon, Jun 25, 2012 at 7:19 PM, Peter Crosthwaite peter.crosthwa...@petalogix.com wrote: On Mon, Jun 25, 2012 at 7:03 PM, Peter Maydell peter.mayd...@linaro.org wrote: On 25 June 2012

[Qemu-devel] [PATCH 00/11] iommu series

2012-06-26 Thread Benjamin Herrenschmidt
Only difference (appart from being rebased) is the memory barrier patch getting a couple of curly braces where they were missing. Cheers, Ben.

[Qemu-devel] [PATCH 01/11] Better support for dma_addr_t variables

2012-06-26 Thread Benjamin Herrenschmidt
From: David Gibson da...@gibson.dropbear.id.au A while back, we introduced the dma_addr_t type, which is supposed to be used for bus visible memory addresses. At present, this is an alias for target_phys_addr_t, but this will change when we eventually add support for guest visible IOMMUs. There

[Qemu-devel] [PATCH 03/11] usb-ohci: Use universal DMA helper functions

2012-06-26 Thread Benjamin Herrenschmidt
From: David Gibson da...@gibson.dropbear.id.au The OHCI device emulation can provide both PCI and SysBus OHCI implementations. Because of this, it was not previously converted to use the PCI DMA helper functions. This patch converts it to use the new universal DMA helper functions. In the PCI

[Qemu-devel] [PATCH 06/11] usb: Convert usb_packet_{map, unmap} to universal DMA helpers

2012-06-26 Thread Benjamin Herrenschmidt
From: David Gibson da...@gibson.dropbear.id.au The USB UHCI and EHCI drivers were converted some time ago to use the pci_dma_*() helper functions. However, this conversion was not complete because in some places both these drivers do DMA via the usb_packet_map() function in usb-libhw.c. That

  1   2   >