Re: [Qemu-devel] [PATCH v12 0/8] pv event to notify host when the guest is panicked

2012-12-19 Thread Hu Tao
Hi, Any comments? On Wed, Dec 12, 2012 at 02:13:43PM +0800, Hu Tao wrote: > This series implements a new interface, kvm pv event, to notify host when > some events happen in guest. Right now there is one supported event: guest > panic. > > changes from v11: > > - add a new patch 'save/load cp

[Qemu-devel] [PULL 0/1] update seabios

2012-12-19 Thread Gerd Hoffmann
Hi, One more seabios update, fixing the FreeBSD build failure. please pull, Gerd The following changes since commit 914606d26e654d4c01bd5186f4d05e3fd445e219: Merge remote-tracking branch 'stefanha/trivial-patches' into staging (2012-12-18 15:41:43 -0600) are available in the git reposit

Re: [Qemu-devel] new pc-bios/bios.bin breaks freebsd booting

2012-12-19 Thread Gerd Hoffmann
On 12/20/12 06:57, Dietmar Maurer wrote: > Do you plan to upload that fix into qemu git repository? From what I see the > repository still contains the broken version? Indeed, I'll go build a seabios update pull req. cheers, Gerd

Re: [Qemu-devel] Q35, Mac OS X, and the War On Entropy

2012-12-19 Thread Gerd Hoffmann
Hi, > However, current mainline QEMU git master does not. I need a > slightly modified command line to even start (had to add > "-L share/qemu" as a fallback bios path to avoid "could not > open option rom ..." errors): Try merging "git.kraxel.org/qemu acpi.1" Without that you have to explicit

Re: [Qemu-devel] [PATCH 8/9] chardev: hotplug, qmp, serial

2012-12-19 Thread Gerd Hoffmann
On 12/19/12 17:21, Paolo Bonzini wrote: > Il 19/12/2012 16:59, Gerd Hoffmann ha scritto: >> Signed-off-by: Gerd Hoffmann >> --- >> qapi-schema.json |3 ++- >> qemu-char.c | 16 ++-- >> 2 files changed, 16 insertions(+), 3 deletions(-) >> >> diff --git a/qapi-schema.json b/q

Re: [Qemu-devel] [RFC PATCH] Allow building without graphics support

2012-12-19 Thread Gerd Hoffmann
Hi, >> Why do you need this? Any tools not picked up correctly if you don't >> set the PATH? Which ones? > > If I don't set the PATH for configure then I get this: > ERROR: "powerpc-linux-gnu-gcc" either does not exist or does not work Any hints in config.log what exactly failed? >> > ...bu

[Qemu-devel] [PATCH] pseries: Remove unneeded include statement (fixes MinGW builds)

2012-12-19 Thread Stefan Weil
sys/mman.h is not needed (tested on Linux) and unavailable for MinGW, so remove it. Signed-off-by: Stefan Weil --- hw/spapr_nvram.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/spapr_nvram.c b/hw/spapr_nvram.c index f20f6b4..680cdba 100644 --- a/hw/spapr_nvram.c +++

Re: [Qemu-devel] Performance of usb tablet over ehci

2012-12-19 Thread Gerd Hoffmann
On 12/19/12 18:48, Hao Luo wrote: > Gerd, > > Thanks very much. > > I tried to install usb 3.0 driver in win7 guest, and the cpu load > decreased to about 9%, as much as PS2 mouse emulation. Good to see this actually meets the expectations ;) > BTW, there are >90 fds polled by qemu_iohandler_po

[Qemu-devel] [PATCH] pseries: Remove unneeded include statement (fixes MinGW builds)

2012-12-19 Thread Stefan Weil
sys/mman.h is not needed (tested on Linux) and unavailable for MinGW, so remove it. Signed-off-by: Stefan Weil --- hw/spapr_nvram.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/spapr_nvram.c b/hw/spapr_nvram.c index f20f6b4..680cdba 100644 --- a/hw/spapr_nvram.c +++

[Qemu-devel] buildbot failure in qemu on xen_unstable

2012-12-19 Thread qemu
The Buildbot has detected a new failure on builder xen_unstable while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/xen_unstable/builds/221 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: anthony_xen Build Reason: The Nig

Re: [Qemu-devel] new pc-bios/bios.bin breaks freebsd booting

2012-12-19 Thread Dietmar Maurer
Do you plan to upload that fix into qemu git repository? From what I see the repository still contains the broken version? > -Original Message- > From: qemu-devel-bounces+dietmar=proxmox@nongnu.org > [mailto:qemu-devel-bounces+dietmar=proxmox@nongnu.org] On > Behalf Of Paolo Bonzi

[Qemu-devel] buildbot failure in qemu on xen41

2012-12-19 Thread qemu
The Buildbot has detected a new failure on builder xen41 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/xen41/builds/220 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: anthony_xen Build Reason: The Nightly scheduler

Re: [Qemu-devel] [RFC 3/3] virtio-balloon: add auto-ballooning support

2012-12-19 Thread Dietmar Maurer
> > Wow, you're fast! And I'm glad that it works for you, so we have two > > full-featured mempressure cgroup users already. > > Thanks, although I think we need more testing to be sure this does what we > want. I mean, the basic mechanics does work, but my testing has been very > light so far. I

[Qemu-devel] buildbot failure in qemu on xen40

2012-12-19 Thread qemu
The Buildbot has detected a new failure on builder xen40 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/xen40/builds/222 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: anthony_xen Build Reason: The Nightly scheduler

Re: [Qemu-devel] [PATCH v6 12/12] virtio-blk: add x-data-plane=on|off performance feature

2012-12-19 Thread Rusty Russell
"Michael S. Tsirkin" writes: > On Tue, Dec 18, 2012 at 03:57:17PM +0100, Stefan Hajnoczi wrote: >> > > @@ -407,6 +409,14 @@ static void virtio_blk_handle_output(VirtIODevice >> > > *vdev, VirtQueue *vq) >> > > .num_writes = 0, >> > > }; >> > > >> > > +/* Some guests kick befor

Re: [Qemu-devel] [Qemu-ppc] [PATCH 11/13] pseries: Fixes and enhancements to L1 cache properties

2012-12-19 Thread David Gibson
On Wed, Dec 19, 2012 at 11:40:09PM +0100, Alexander Graf wrote: > > On 19.12.2012, at 05:34, David Gibson wrote: > > > On Tue, Dec 18, 2012 at 12:49:02AM +0100, Alexander Graf wrote: > >> > >> On 18.12.2012, at 00:00, David Gibson wrote: > >> > >>> On Mon, Dec 17, 2012 at 11:10:12AM +0100, Alex

Re: [Qemu-devel] [PATCH 2/3] HMP: pass in parameter for info sub command

2012-12-19 Thread Wenchao Xia
> On Wed, 19 Dec 2012 18:17:09 +0800 Wenchao Xia wrote: This patch enable sub info command handler getting meaningful parameter. Signed-off-by: Wenchao Xia --- hmp-commands.hx |2 +- monitor.c | 79 +++ 2 files changed, 5

[Qemu-devel] [PATCH v3] qemu-kvm/pci-assign: 64 bits bar emulation

2012-12-19 Thread Xudong Hao
Enable 64 bits bar emulation. v3 changes from v2: - Leave original error string and drop the leading 016. v2 changes from v1: - Change 0lx% to 0x%016 when print a 64 bit variable. Test pass with the current seabios which already support 64bit pci bars. Signed-off-by: Xudong Hao --- hw/kvm/pci

Re: [Qemu-devel] [PATCH v2] qemu-kvm/pci-assign: 64 bits bar emulation

2012-12-19 Thread Hao, Xudong
> -Original Message- > From: Alex Williamson [mailto:alex.william...@redhat.com] > Sent: Thursday, December 20, 2012 10:39 AM > To: Hao, Xudong > Cc: qemu-devel@nongnu.org; mtosa...@redhat.com; g...@redhat.com; > k...@vger.kernel.org > Subject: Re: [PATCH v2] qemu-kvm/pci-assign: 64 bits ba

Re: [Qemu-devel] [PATCH v2] qemu-kvm/pci-assign: 64 bits bar emulation

2012-12-19 Thread Alex Williamson
On Thu, 2012-12-20 at 01:52 +, Hao, Xudong wrote: > > -Original Message- > > From: Alex Williamson [mailto:alex.william...@redhat.com] > > Sent: Thursday, December 20, 2012 12:06 AM > > To: Hao, Xudong > > Cc: qemu-devel@nongnu.org; mtosa...@redhat.com; g...@redhat.com; > > k...@vger.ke

Re: [Qemu-devel] [PATCH v2 00/17] qapi: Convert savevm, loadvm, delvm and info snapshots

2012-12-19 Thread Wenchao Xia
> > We should also merge functionality of migrations and vm-snapshots and make > some clean-ups of this code. I could do it as another patch. With this > rewrite we could make vm-snapshots asynchronous. > > Hi, Pavel For vm-snapshots asynchronous, I have sent a RFC patch for it at: http://lists.

[Qemu-devel] [RFC] virtio-block serial number.

2012-12-19 Thread Alexey Zaytsev
Hi. Would it be a good idea to provide some non-empty serial number for VIRTIO_BLK_T_GET_ID, when the user does not specify one? QEMU assigns a default serial to IDE drives, but not virtio.

Re: [Qemu-devel] [PATCH] target-mips: Use EXCP_SC rather than a magic number

2012-12-19 Thread Wei-Ren Chen
Hi Li, > > > Signed-off-by: Chen Wei-Ren > > > --- > > > target-mips/op_helper.c |6 +++--- > > > 1 files changed, 3 insertions(+), 3 deletions(-) > > > > > > diff --git a/target-mips/op_helper.c b/target-mips/op_helper.c > > > index f45d494..98a445c 100644 > > > --- a/target-mips/op_helper

Re: [Qemu-devel] [PATCH] target-mips: Use EXCP_SC rather than a magic number

2012-12-19 Thread li guang
在 2012-12-20四的 09:23 +0800,陳韋任 (Wei-Ren Chen)写道: > ping? :-) > > On Tue, Dec 11, 2012 at 12:15:55AM +0800, 陳韋任 (Wei-Ren Chen) wrote: > > From the discussion on the ML [1], the exception limit defined by > > magic number 0x100 is actually EXCP_SC defined in cpu.h. Replace the > > magic number wit

Re: [Qemu-devel] [PATCH v2] qemu-kvm/pci-assign: 64 bits bar emulation

2012-12-19 Thread Hao, Xudong
> -Original Message- > From: Alex Williamson [mailto:alex.william...@redhat.com] > Sent: Thursday, December 20, 2012 12:06 AM > To: Hao, Xudong > Cc: qemu-devel@nongnu.org; mtosa...@redhat.com; g...@redhat.com; > k...@vger.kernel.org > Subject: Re: [PATCH v2] qemu-kvm/pci-assign: 64 bits ba

Re: [Qemu-devel] [PATCH v2] exec.c: Use tb1->phys_hash_next directly in tb_remove

2012-12-19 Thread Wei-Ren Chen
On Tue, Dec 18, 2012 at 05:37:53PM +0100, Stefan Hajnoczi wrote: > On Wed, Nov 21, 2012 at 07:52:48AM +0800, 陳韋任 (Wei-Ren Chen) wrote: > > When tb_remove was first commited at fd6ce8f6, there were three different > > calls pass different names to offsetof. In current codebase, the other two > > c

Re: [Qemu-devel] [PATCH] target-mips: Use EXCP_SC rather than a magic number

2012-12-19 Thread Wei-Ren Chen
ping? :-) On Tue, Dec 11, 2012 at 12:15:55AM +0800, 陳韋任 (Wei-Ren Chen) wrote: > From the discussion on the ML [1], the exception limit defined by > magic number 0x100 is actually EXCP_SC defined in cpu.h. Replace the > magic number with EXCP_SC. Remove "#if 1 .. #endif" as well. > > [1] http:

[Qemu-devel] [PATCH 13/20] target-i386: remove vendor_override field from CPUX86State

2012-12-19 Thread Igor Mammedov
commit 8935499831312 makes cpuid return to guest host's vendor value instead of built-in one by default if kvm_enabled() == true and allows to override this behavior if 'vendor' is specified on -cpu command line. But every time guest calls cpuid to get 'vendor' value, host's value is read again an

[Qemu-devel] [PATCH 12/20 v2] target-i386: replace uint32_t vendor fields by vendor string in x86_def_t

2012-12-19 Thread Igor Mammedov
Vendor property setter takes string as vendor value but cpudefs use uint32_t vendor[123] fields to define vendor value. It makes it difficult to unify and use property setter for values from cpudefs. Simplify code by using vendor property setter, vendor[123] fields are converted into vendor[13] ar

[Qemu-devel] [PATCH 11/20] target-i386: add x86cpu_vendor_words2str()

2012-12-19 Thread Igor Mammedov
Make for() cycle reusable for the next patch Signed-off-by: Igor Mammedov --- target-i386/cpu.c | 21 ++--- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index a74d74b..06b991e 100644 --- a/target-i386/cpu.c +++ b/target-i386

[Qemu-devel] target-i386: Remove *vendor_override fields from x86_def_t and CPUX86State

2012-12-19 Thread Igor Mammedov
Makes code cleaner and avoids headache with 'vendor' property. replaces previous patches: [PATCH 11/20] target-i386: do not set vendor_override in x86_cpuid_set_vendor() [PATCH 13/20] target-i386: convert [cpuid_]vendor_override to bool with: [PATCH 11/20] target-i386: add x86cpu_vendor_wor

Re: [Qemu-devel] [PATCH 11/20] target-i386: do not set vendor_override in x86_cpuid_set_vendor()

2012-12-19 Thread Igor Mammedov
On Wed, 19 Dec 2012 15:38:09 -0200 Eduardo Habkost wrote: > On Mon, Dec 17, 2012 at 05:01:23PM +0100, Igor Mammedov wrote: > > commit d480e1af which introduced vendor property was setting > > env->cpuid_vendor_override = 1, which prevents using vendor property > > on its own without triggering ve

Re: [Qemu-devel] [RFC PATCH V8 08/15] virtio-blk : Add the virtio-blk device.

2012-12-19 Thread Peter Maydell
On 19 December 2012 20:00, Blue Swirl wrote: > On Wed, Dec 19, 2012 at 9:53 AM, wrote: >> +#ifdef __linux__ >> +#define DEFINE_VIRTIO_BLK_PROPERTIES(_state, _field) \ >> +DEFINE_BLOCK_PROPERTIES(_state, _field.conf), \ >> +DEFINE_BLOCK_CHS

[Qemu-devel] [Bug 1091766] Re: Physical host crash with Mellanox IB PCI passthrough

2012-12-19 Thread Alex Williamson
Here's another version of the legacy pci-assign patch. This should also only use 4 vectors on the host, like vfio. I'm a little uneasy about setting up an MSIMessage with unknown data, but I guess we did it for a long time previously. Please test. Thanks ** Attachment added: "v2: pci-assign: E

Re: [Qemu-devel] [Qemu-ppc] [PATCH 11/13] pseries: Fixes and enhancements to L1 cache properties

2012-12-19 Thread Alexander Graf
On 19.12.2012, at 05:34, David Gibson wrote: > On Tue, Dec 18, 2012 at 12:49:02AM +0100, Alexander Graf wrote: >> >> On 18.12.2012, at 00:00, David Gibson wrote: >> >>> On Mon, Dec 17, 2012 at 11:10:12AM +0100, Alexander Graf wrote: On 17.12.2012, at 03:32, David Gibson wrote:

Re: [Qemu-devel] [PATCH v3 0/2] Qemu boot order patch series

2012-12-19 Thread Alexander Graf
On 19.12.2012, at 19:16, Avik Sil wrote: > Hi, > > This patch series allows a machine to specify if it wants a default boot > order or not. I like the patch set. Anthony, please (n)ack :). Alex > > Regards, > Avik > > Changes v2 -> v3: > - Implement boot_order as per Anthony's suggestion

Re: [Qemu-devel] [PATCH 15/20] target-i386: set custom 'xlevel' without intermediate x86_def_t

2012-12-19 Thread Igor Mammedov
On Wed, 19 Dec 2012 15:58:40 -0200 Eduardo Habkost wrote: > On Mon, Dec 17, 2012 at 05:01:27PM +0100, Igor Mammedov wrote: > > Signed-off-by: Igor Mammedov > > --- > > target-i386/cpu.c |4 +++- > > 1 files changed, 3 insertions(+), 1 deletions(-) > > > > diff --git a/target-i386/cpu.c b/t

Re: [Qemu-devel] Q35, Mac OS X, and the War On Entropy

2012-12-19 Thread Gabriel L. Somlo
On Wed, Dec 19, 2012 at 03:18:43PM -0500, Jason Baron wrote: > I think you are missing: > > -acpitable file=/out/q35-acpi-dsdt.aml Indeed, that made all the difference ! Thanks much, --Gabriel

Re: [Qemu-devel] Q35, Mac OS X, and the War On Entropy

2012-12-19 Thread Jason Baron
On Wed, Dec 19, 2012 at 02:32:42PM -0500, Gabriel L. Somlo wrote: > Hi, > > I'm working on getting OS X to run on KVM, and the latest > q35-qemu tree from GitHub, plus additionally applied commit > 40862309a9d733cb0e878c79f477de003897b5d2 from mainline works > great, with the following command lin

Re: [Qemu-devel] [PATCH 10/20] target-i386: prepare cpu_x86_parse_featurestr() to return a set of key, value property pairs

2012-12-19 Thread Igor Mammedov
On Wed, 19 Dec 2012 14:54:30 -0200 Eduardo Habkost wrote: > On Mon, Dec 17, 2012 at 05:01:22PM +0100, Igor Mammedov wrote: > > It prepares for converting "+feature,-feature,feature=foo,feature" into > > a set of key,value property pairs that will be applied to CPU by > > cpu_x86_set_props(). > >

Re: [Qemu-devel] [PATCH 3/9] chardev: reduce chardev ifdef mess a bit

2012-12-19 Thread Blue Swirl
On Wed, Dec 19, 2012 at 3:59 PM, Gerd Hoffmann wrote: > Signed-off-by: Gerd Hoffmann > --- > qemu-char.c | 22 +++--- > 1 files changed, 11 insertions(+), 11 deletions(-) > > diff --git a/qemu-char.c b/qemu-char.c > index 9bb3a6b..208c525 100644 > --- a/qemu-char.c > +++ b/qemu

[Qemu-devel] [PATCH v2] target-xtensa: fix search_pc for the last TB opcode

2012-12-19 Thread Max Filippov
Zero out tcg_ctx.gen_opc_instr_start for instructions representing the last guest opcode in the TB. Cc: qemu-sta...@nongnu.org Signed-off-by: Max Filippov --- Changes v1 -> v2: - replace while loop with memset target-xtensa/translate.c |6 +- 1 files changed, 5 insertions(+), 1 deletion

Re: [Qemu-devel] [PULL 00/45] Include reorganization + PCI patch queue

2012-12-19 Thread Blue Swirl
On Wed, Dec 19, 2012 at 8:35 AM, Paolo Bonzini wrote: > Il 19/12/2012 03:13, Alexander Graf ha scritto: >> Does making libfdt a submodule really change things? Developers would >> still have to init the submodule. They could just as well install the >> libfdt-devel packet from their distro of choi

Re: [Qemu-devel] [RFC PATCH V8 08/15] virtio-blk : Add the virtio-blk device.

2012-12-19 Thread Blue Swirl
On Wed, Dec 19, 2012 at 9:53 AM, wrote: > From: KONRAD Frederic > > Create virtio-blk which extends virtio-device, so it can be connected on > virtio-bus. > > Signed-off-by: KONRAD Frederic > --- > hw/virtio-blk.c | 101 > +++- > hw/virtio-b

Re: [Qemu-devel] [RFC PATCH V8 14/15] virtio : Remove VirtIOBindings.

2012-12-19 Thread Blue Swirl
On Wed, Dec 19, 2012 at 9:53 AM, wrote: > From: KONRAD Frederic > > This remove VirtIOBindings and use VirtioBusClass instead. It should be > applied > when all the device have been refactored. > > Signed-off-by: KONRAD Frederic > --- > hw/virtio-bus.c | 20 > hw/virtio-b

Re: [Qemu-devel] [RFC PATCH V8 04/15] virtio-pci : Refactor virtio-pci device.

2012-12-19 Thread Blue Swirl
On Wed, Dec 19, 2012 at 9:53 AM, wrote: > From: KONRAD Frederic > > Create the virtio-pci device. This transport device will create a > virtio-pci-bus, so one VirtIODevice can be connected. > > Signed-off-by: KONRAD Frederic > --- > hw/virtio-pci.c | 130 >

Re: [Qemu-devel] [RFC PATCH V8 13/15] virtio : Remove the function pointer.

2012-12-19 Thread Blue Swirl
On Wed, Dec 19, 2012 at 9:53 AM, wrote: > From: KONRAD Frederic > > This remove the function pointer in VirtIODevice, and use only > VirtioDeviceClass function pointer. It should be applied after all > the device have been refactored. > > Signed-off-by: KONRAD Frederic > --- > hw/virtio-blk.c

Re: [Qemu-devel] [PATCH] target-xtensa: fix search_pc for the last TB opcode

2012-12-19 Thread Max Filippov
On Wed, Dec 19, 2012 at 11:45 PM, Blue Swirl wrote: > On Tue, Dec 18, 2012 at 7:21 AM, Max Filippov wrote: >> Zero out tcg_ctx.gen_opc_instr_start for instructions representing the >> last guest opcode in the TB. >> >> Cc: qemu-sta...@nongnu.org >> Signed-off-by: Max Filippov >> --- >> target-x

Re: [Qemu-devel] [RFC PATCH v4 25/30] acpi_ich9: add hot-remove capability

2012-12-19 Thread Blue Swirl
On Tue, Dec 18, 2012 at 12:41 PM, Vasilis Liaskovitis wrote: > --- > hw/acpi_ich9.c | 28 +++- > hw/acpi_ich9.h |1 + > 2 files changed, 28 insertions(+), 1 deletions(-) > > diff --git a/hw/acpi_ich9.c b/hw/acpi_ich9.c > index abafbb5..f5dc1c9 100644 > --- a/hw/acpi_

Re: [Qemu-devel] [RFC PATCH v4 19/30] Implement "info memory-total" and "query-memory-total"

2012-12-19 Thread Blue Swirl
On Tue, Dec 18, 2012 at 12:41 PM, Vasilis Liaskovitis wrote: > Returns total physical memory available to guest in bytes, including > hotplugged > memory. Note that the number reported here may be different from what the > guest > sees e.g. if the guest has not logically onlined hotplugged memor

Re: [Qemu-devel] [PATCH] target-xtensa: fix search_pc for the last TB opcode

2012-12-19 Thread Blue Swirl
On Tue, Dec 18, 2012 at 7:21 AM, Max Filippov wrote: > Zero out tcg_ctx.gen_opc_instr_start for instructions representing the > last guest opcode in the TB. > > Cc: qemu-sta...@nongnu.org > Signed-off-by: Max Filippov > --- > target-xtensa/translate.c |8 +++- > 1 files changed, 7 insert

Re: [Qemu-devel] [PATCH 1/3] qtest: Enable creation of multiple qemu instances

2012-12-19 Thread Blue Swirl
On Mon, Dec 17, 2012 at 5:13 PM, Jason Baron wrote: > On Sat, Dec 15, 2012 at 09:20:13AM +, Blue Swirl wrote: >> On Sat, Dec 15, 2012 at 9:14 AM, Paolo Bonzini wrote: >> >> > +#define QTEST_FILE_TEMP "/tmp/qtest-%d.sock" >> >> > +#define QTEST_QMP_FILE_TEMP "/tmp/qtest-%d.qmp" >> >> > +#defin

Re: [Qemu-devel] [PULL 00/45] Include reorganization + PCI patch queue

2012-12-19 Thread Michael S. Tsirkin
On Tue, Dec 18, 2012 at 08:00:58PM -0600, Anthony Liguori wrote: > Anthony Liguori writes: > > > Paolo Bonzini writes: > > > >> And how does it conflicts with Alex's ppc pull request? It is a fast > >> forward from origin/master as of now (commit a8a826a, exec: refactor > >> cpu_restore_state, 2

[Qemu-devel] Q35, Mac OS X, and the War On Entropy

2012-12-19 Thread Gabriel L. Somlo
Hi, I'm working on getting OS X to run on KVM, and the latest q35-qemu tree from GitHub, plus additionally applied commit 40862309a9d733cb0e878c79f477de003897b5d2 from mainline works great, with the following command line: bin/qemu-system-x86_64 -enable-kvm -m 2048 -cpu core2duo \ -M q35 -L sea

Re: [Qemu-devel] [PATCH] MAINTAINERS: Take over kvm maintenance

2012-12-19 Thread Andreas Färber
Am 19.12.2012 20:12, schrieb Marcelo Tosatti: > On Wed, Dec 19, 2012 at 08:05:10PM +0100, Andreas Färber wrote: >> I'm also surprised that there's been no KVM pull since v1.3 - are you >> expecting Anthony to pick up KVM'ish patches himself now? Otherwise, >> someone mentioned qemu-kvm.git were no

Re: [Qemu-devel] [PATCH] MAINTAINERS: Take over kvm maintenance

2012-12-19 Thread Marcelo Tosatti
On Wed, Dec 19, 2012 at 08:05:10PM +0100, Andreas Färber wrote: > Am 19.12.2012 17:33, schrieb Marcelo Tosatti: > > On Wed, Dec 19, 2012 at 05:00:40PM +0100, Andreas Färber wrote: > >> Am 19.12.2012 16:46, schrieb Gleb Natapov: > >>> > >>> Replace Avi with myself as kvm maintainer. > >>> > >>> Sign

Re: [Qemu-devel] [PATCH 11/20] target-i386: do not set vendor_override in x86_cpuid_set_vendor()

2012-12-19 Thread Andreas Färber
Am 19.12.2012 18:38, schrieb Eduardo Habkost: > On Mon, Dec 17, 2012 at 05:01:23PM +0100, Igor Mammedov wrote: >> commit d480e1af which introduced vendor property was setting >> env->cpuid_vendor_override = 1, which prevents using vendor property >> on its own without triggering vendor override. >>

Re: [Qemu-devel] [PATCH qom-cpu v2] cpu: Introduce CPUListState struct

2012-12-19 Thread Igor Mammedov
On Wed, 19 Dec 2012 02:03:55 +0100 Andreas Färber wrote: > This generalizes {ARM,M68k,Alpha}CPUListState to avoid declaring it for > each target. Place it in cpu-common.h to avoid circular dependencies. > > Signed-off-by: Andreas Färber > Cc: Eduardo Habkost > Cc: Igor Mammedov > --- > cpu-c

Re: [Qemu-devel] [PATCH] MAINTAINERS: Take over kvm maintenance

2012-12-19 Thread Andreas Färber
Am 19.12.2012 17:33, schrieb Marcelo Tosatti: > On Wed, Dec 19, 2012 at 05:00:40PM +0100, Andreas Färber wrote: >> Am 19.12.2012 16:46, schrieb Gleb Natapov: >>> >>> Replace Avi with myself as kvm maintainer. >>> >>> Signed-off-by: Gleb Natapov >> >> That solves my mail bounce issue, too. >> >> If

Re: [Qemu-devel] [RFC PATCH] Allow building without graphics support

2012-12-19 Thread Scott Wood
On 12/19/2012 03:13:34 AM, Gerd Hoffmann wrote: >> ./configure >> --cross-prefix=/home/scott/fsl/tc/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/bin/powerpc-linux-gnu- >> >> && make ? > > A few more options than that, but basically yes. > > I can get past this particular obstacle by doing somet

Re: [Qemu-devel] [RFC PATCH] Allow building without graphics support

2012-12-19 Thread Scott Wood
On 12/19/2012 03:02:13 AM, Gerd Hoffmann wrote: On 12/14/12 19:51, Scott Wood wrote: > On 12/14/2012 02:13:53 AM, Gerd Hoffmann wrote: >> Hi, >> >> > Yes, I could manually install it, though then I get to deal with >> telling >> > the pixman build exactly where to install itself, and repeating

Re: [Qemu-devel] [Xen-devel] [PATCH] xen_disk: implement BLKIF_OP_FLUSH_DISKCACHE, remove BLKIF_OP_WRITE_BARRIER

2012-12-19 Thread Konrad Rzeszutek Wilk
On Wed, May 09, 2012 at 01:42:41PM +0100, Stefano Stabellini wrote: > On Thu, 26 Apr 2012, Konrad Rzeszutek Wilk wrote: > > On Wed, Apr 25, 2012 at 01:23:35PM +0200, Christoph Hellwig wrote: > > > On Wed, Apr 25, 2012 at 12:21:53PM +0100, Stefano Stabellini wrote: > > > > That is true, in fact I co

[Qemu-devel] [Bug 108996 V2] hw/dma.c: Fix converting of ioport_register* to MemoryRegion

2012-12-19 Thread Julien Grall
The commit 582299336879504353e60c7937fbc70fea93f3da introduced a 1-shift for some offset in dma emulation. Before the previous commit, which converted ioport_register_* to MemoryRegion, the DMA controller registered 8 ioports with the following formula: base + ((8 + i) << d->shift) where 0 <= i <

[Qemu-devel] [PATCH] sheepdog: implement direct write semantics

2012-12-19 Thread Liu Yuan
From: Liu Yuan Sheepdog supports both writeback/writethrough write but has not yet supported DIRECTIO semantics which bypass the cache completely even if Sheepdog daemon is set up with cache enabled. Suppose cache is enabled on Sheepdog daemon size, the new cache control is cache=writeback # en

[Qemu-devel] [PATCH v3 1/2] Make default boot order machine specific

2012-12-19 Thread Avik Sil
This patch makes default boot order machine specific instead of set globally. The default boot order can be set per machine in QEMUMachine boot_order. This also allows a machine to receive a NULL boot order when -boot isn't used and take an appropriate action accordingly. This helps machine boots f

[Qemu-devel] [PATCH v3 2/2] pseries: set no default boot order

2012-12-19 Thread Avik Sil
This patch removes the default boot order for pseries machine. This allows the machine to handle a NULL boot order in case no -boot option is provided. Thus it helps SLOF firmware to verify if boot order is specified in command line or not. If no boot order is provided SLOF tries to boot from the d

[Qemu-devel] [PATCH v3 0/2] Qemu boot order patch series

2012-12-19 Thread Avik Sil
Hi, This patch series allows a machine to specify if it wants a default boot order or not. Regards, Avik Changes v2 -> v3: - Implement boot_order as per Anthony's suggestion in http://lists.nongnu.org/archive/html/qemu-ppc/2012-10/msg00274.html Changes v1 -> v2: - Set default boot order for e

Re: [Qemu-devel] [PATCH v7 4/4] Add qemu-img compare documentation

2012-12-19 Thread Eric Blake
On 12/17/2012 06:39 AM, mreza...@redhat.com wrote: > From: Miroslav Rezanina > > Adding documentation for new qemu-img subcommand compare. > > Signed-off-by: Miroslav Rezanina > --- > qemu-img.c| 7 ++- > qemu-img.texi | 32 > 2 files changed, 38 inser

Re: [Qemu-devel] [PATCH v7 3/4] qemu-img: Add compare subcommand

2012-12-19 Thread Eric Blake
On 12/17/2012 06:39 AM, mreza...@redhat.com wrote: > From: Miroslav Rezanina > > This patch adds new qemu-img subcommand that compare content of two disk s/compare/compares/ > images. > > Signed-off-by: Miroslav Rezanina > --- > @@ -587,7 +587,7 @@ static int img_commit(int argc, char **argv)

Re: [Qemu-devel] [RFC PATCH V8 06/15] virtio-s390-bus : Add virtio-s390-bus.

2012-12-19 Thread Cornelia Huck
On Wed, 19 Dec 2012 10:53:32 +0100 fred.kon...@greensocs.com wrote: > From: KONRAD Frederic > > Introduce virtio-s390-bus, which extends virtio-bus. It is used with s390 > transport device. > > Signed-off-by: KONRAD Frederic > --- > hw/s390-virtio-bus.c | 28 > hw

Re: [Qemu-devel] [PATCH 2/3] HMP: pass in parameter for info sub command

2012-12-19 Thread Luiz Capitulino
On Wed, 19 Dec 2012 18:17:09 +0800 Wenchao Xia wrote: > This patch enable sub info command handler getting meaningful > parameter. > > Signed-off-by: Wenchao Xia > --- > hmp-commands.hx |2 +- > monitor.c | 79 > +++ > 2 files

Re: [Qemu-devel] [PATCH v7 2/4] qemu-img: Add "Quiet mode" option

2012-12-19 Thread Eric Blake
On 12/17/2012 06:39 AM, mreza...@redhat.com wrote: > From: Miroslav Rezanina Your git send-email settings threaded each message as a reply to the other, rather than the more typical setting of threading messages only as a reply to the cover letter. You may want to do 'git config format.thread sh

Re: [Qemu-devel] [PATCH 15/20] target-i386: set custom 'xlevel' without intermediate x86_def_t

2012-12-19 Thread Eduardo Habkost
On Mon, Dec 17, 2012 at 05:01:27PM +0100, Igor Mammedov wrote: > Signed-off-by: Igor Mammedov > --- > target-i386/cpu.c |4 +++- > 1 files changed, 3 insertions(+), 1 deletions(-) > > diff --git a/target-i386/cpu.c b/target-i386/cpu.c > index 0cb0931..714ae79 100644 > --- a/target-i386/cpu.c

Re: [Qemu-devel] [PATCH v7 1/4] block: Add synchronous wrapper for bdrv_co_is_allocated_above

2012-12-19 Thread Eric Blake
On 12/17/2012 06:39 AM, mreza...@redhat.com wrote: > From: Miroslav Rezanina > > There's no synchronous wrapper for bdrv_co_is_allocated_above function > so it's not possible to check for sector allocation in image with s/in image with/in an image with a/ > backing file. > > This patch add mis

Re: [Qemu-devel] Performance of usb tablet over ehci

2012-12-19 Thread Hao Luo
Gerd, Thanks very much. I tried to install usb 3.0 driver in win7 guest, and the cpu load decreased to about 9%, as much as PS2 mouse emulation. BTW, there are >90 fds polled by qemu_iohandler_poll(). According to the perf profiling report, when uhci hid mouse is enabled, this function will be

Re: [Qemu-devel] [PATCH 11/20] target-i386: do not set vendor_override in x86_cpuid_set_vendor()

2012-12-19 Thread Eduardo Habkost
On Mon, Dec 17, 2012 at 05:01:23PM +0100, Igor Mammedov wrote: > commit d480e1af which introduced vendor property was setting > env->cpuid_vendor_override = 1, which prevents using vendor property > on its own without triggering vendor override. > Fix it by removing setting cpuid_vendor_override in

[Qemu-devel] [Bug 1025244] Re: qcow2 image increasing disk size above the virtual limit

2012-12-19 Thread Serge Hallyn
I don't know of any qcow2-based workaround. Is anyone actively working on fixing the qcow2 code? In particular, the fact that after removing snapshots, un-used blocks are not reclaimed and disk size is never reduced? One possible workaround (the one I would use) would be to use lvm-based snapsho

Re: [Qemu-devel] [PATCH 07/20 v2] target-i386: cpu_x86_register() consolidate freeing resources

2012-12-19 Thread Igor Mammedov
On Wed, 19 Dec 2012 15:04:37 -0200 Eduardo Habkost wrote: > On Wed, Dec 19, 2012 at 05:49:22PM +0100, Igor Mammedov wrote: > > On Wed, 19 Dec 2012 14:36:28 -0200 > > Eduardo Habkost wrote: > > > > > On Tue, Dec 18, 2012 at 05:30:43PM +0100, Igor Mammedov wrote: > > > > freeing resources in one

Re: [Qemu-devel] [PATCH 08/20] target-i386: compile kvm only functions if CONFIG_KVM is defined

2012-12-19 Thread Igor Mammedov
On Wed, 19 Dec 2012 14:42:31 -0200 Eduardo Habkost wrote: > On Mon, Dec 17, 2012 at 05:01:20PM +0100, Igor Mammedov wrote: > [...] > > > > static void x86_cpuid_version_get_family(Object *obj, Visitor *v, void > > *opaque, const char *name, Error **errp) > > @@ -1273,7 +1271,9 @@ static int cp

Re: [Qemu-devel] [PATCH 07/20 v2] target-i386: cpu_x86_register() consolidate freeing resources

2012-12-19 Thread Eduardo Habkost
On Wed, Dec 19, 2012 at 05:49:22PM +0100, Igor Mammedov wrote: > On Wed, 19 Dec 2012 14:36:28 -0200 > Eduardo Habkost wrote: > > > On Tue, Dec 18, 2012 at 05:30:43PM +0100, Igor Mammedov wrote: > > > freeing resources in one place would require setting 'error' > > > to not NULL, so add some more

[Qemu-devel] [Bug 1091766] Re: Physical host crash with Mellanox IB PCI passthrough

2012-12-19 Thread Alex Williamson
You're right, I'm thinking of MSI where lspci reports x/y vectors. The only way I know to get this is to grep /proc/interrupts on host and guest. Look for kvm or vfio in the host and likely some device specific identifier in the guest. I also see your original log now, so old qemu worked, but wa

Re: [Qemu-devel] [PATCH 10/20] target-i386: prepare cpu_x86_parse_featurestr() to return a set of key, value property pairs

2012-12-19 Thread Eduardo Habkost
On Mon, Dec 17, 2012 at 05:01:22PM +0100, Igor Mammedov wrote: > It prepares for converting "+feature,-feature,feature=foo,feature" into > a set of key,value property pairs that will be applied to CPU by > cpu_x86_set_props(). > > Each feature handled by cpu_x86_parse_featurestr() will be converte

Re: [Qemu-devel] [PATCH 07/20 v2] target-i386: cpu_x86_register() consolidate freeing resources

2012-12-19 Thread Igor Mammedov
On Wed, 19 Dec 2012 14:36:28 -0200 Eduardo Habkost wrote: > On Tue, Dec 18, 2012 at 05:30:43PM +0100, Igor Mammedov wrote: > > freeing resources in one place would require setting 'error' > > to not NULL, so add some more error reporting before jumping to > > exit branch. > > > > Signed-off-by:

Re: [Qemu-devel] [PATCH 09/20] target-i386: move kvm_check_features_against_host() check to realize time

2012-12-19 Thread Eduardo Habkost
On Mon, Dec 17, 2012 at 05:01:21PM +0100, Igor Mammedov wrote: > Signed-off-by: Igor Mammedov Reviewed-by: Eduardo Habkost I really like this one, because it makes it easy to unify filter_features_for_kvm() and kvm_check_features_against_host() later. > --- > target-i386/cpu.c | 23 +++

Re: [Qemu-devel] [PATCH 08/20] target-i386: compile kvm only functions if CONFIG_KVM is defined

2012-12-19 Thread Eduardo Habkost
On Mon, Dec 17, 2012 at 05:01:20PM +0100, Igor Mammedov wrote: [...] > > static void x86_cpuid_version_get_family(Object *obj, Visitor *v, void > *opaque, > const char *name, Error **errp) > @@ -1273,7 +1271,9 @@ static int cpu_x86_find_by_name(x86_def_

Re: [Qemu-devel] [Resend][Seabios PATCH] don't boot from un-selected devices

2012-12-19 Thread Kevin O'Connor
On Wed, Dec 19, 2012 at 03:24:45PM +0800, Amos Kong wrote: > Current seabios will try to boot from selected devices first, > if they are all failed, seabios will also try to boot from > un-selected devices. > > For example: > @ qemu-kvm -boot order=n,menu=on ... > > Guest will boot from network f

Re: [Qemu-devel] [PATCH 07/20 v2] target-i386: cpu_x86_register() consolidate freeing resources

2012-12-19 Thread Eduardo Habkost
On Tue, Dec 18, 2012 at 05:30:43PM +0100, Igor Mammedov wrote: > freeing resources in one place would require setting 'error' > to not NULL, so add some more error reporting before jumping to > exit branch. > > Signed-off-by: Igor Mammedov > --- > v2: >- add missing 'return -1' on exit if e

Re: [Qemu-devel] [PATCH] MAINTAINERS: Take over kvm maintenance

2012-12-19 Thread Marcelo Tosatti
On Wed, Dec 19, 2012 at 05:00:40PM +0100, Andreas Färber wrote: > Am 19.12.2012 16:46, schrieb Gleb Natapov: > > > > Replace Avi with myself as kvm maintainer. > > > > Signed-off-by: Gleb Natapov > > That solves my mail bounce issue, too. > > If you put yourself as main KVM maintainer in Avi's

Re: [Qemu-devel] [Bug 1091766] Re: Physical host crash with Mellanox IB PCI passthrough

2012-12-19 Thread Vlastimil Holer
On Wed, Dec 19, 2012 at 4:31 PM, Alex Williamson wrote: > So you likely see through lspci that both the guest and host have 4 > vectors enabled. Maybe you'll have to kick me on how to find this data. If I look on lspci output, I find only this relevant thing: Capabilities: [9c] MSI-X: Ena

Re: [Qemu-devel] [PATCH] MAINTAINERS: Take over kvm maintenance

2012-12-19 Thread Paolo Bonzini
Il 19/12/2012 17:00, Andreas Färber ha scritto: > If you put yourself as main KVM maintainer in Avi's place, note that I > received zero feedback from Marcelo on my CPU series, which I therefore > just included in my pull request: > http://lists.gnu.org/archive/html/qemu-devel/2012-12/msg02963.html

[Qemu-devel] [PATCH 18/18] sheepdog: pass oid directly to send_pending_req()

2012-12-19 Thread Stefan Hajnoczi
From: Liu Yuan Cc: MORITA Kazutaka Cc: Kevin Wolf Signed-off-by: Liu Yuan Reviewed-by: MORITA Kazutaka Signed-off-by: Stefan Hajnoczi --- block/sheepdog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/sheepdog.c b/block/sheepdog.c index ef7bc81..ceabc00 100644 --

[Qemu-devel] [PATCH 7/9] chardev: hotplug, qmp, tty

2012-12-19 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- qapi-schema.json |6 ++ qemu-char.c | 53 +++-- 2 files changed, 53 insertions(+), 6 deletions(-) diff --git a/qapi-schema.json b/qapi-schema.json index 8904d36..7e5c8c2 100644 --- a/qapi-schema.json

Re: [Qemu-devel] [PATCH 8/9] chardev: hotplug, qmp, serial

2012-12-19 Thread Paolo Bonzini
Il 19/12/2012 16:59, Gerd Hoffmann ha scritto: > Signed-off-by: Gerd Hoffmann > --- > qapi-schema.json |3 ++- > qemu-char.c | 16 ++-- > 2 files changed, 16 insertions(+), 3 deletions(-) > > diff --git a/qapi-schema.json b/qapi-schema.json > index 7e5c8c2..d833385 100644

[Qemu-devel] [PATCH 8/9] chardev: hotplug, qmp, serial

2012-12-19 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- qapi-schema.json |3 ++- qemu-char.c | 16 ++-- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/qapi-schema.json b/qapi-schema.json index 7e5c8c2..d833385 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -3036,7 +3036,

[Qemu-devel] [PATCH RfC 0/9] chardev hotplug

2012-12-19 Thread Gerd Hoffmann
Hi, Chardev hotplug patch series reloaded. Not finished yet, commit messages not finalized yet, totally untested other than building on linux+windows. I doubt I manage to finish (and test!) it before xmas. Nevertheless I wanna get the bits out of the door for you to see what is coming and for

[Qemu-devel] [PATCH 12/18] virtio-blk: add x-data-plane=on|off performance feature

2012-12-19 Thread Stefan Hajnoczi
The virtio-blk-data-plane feature is easy to integrate into hw/virtio-blk.c. The data plane can be started and stopped similar to vhost-net. Users can take advantage of the virtio-blk-data-plane feature using the new -device virtio-blk-pci,x-data-plane=on property. The x-data-plane name was chos

[Qemu-devel] [PATCH 09/18] iov: add qemu_iovec_concat_iov()

2012-12-19 Thread Stefan Hajnoczi
The qemu_iovec_concat() function copies a subset of a QEMUIOVector. The new qemu_iovec_concat_iov() function does the same for a iov/cnt pair. It is easy to define qemu_iovec_concat() in terms of qemu_iovec_concat_iov(). The existing code is mostly unchanged, except for the assertion src->size >

[Qemu-devel] [PATCH 6/9] chardev: hotplug, qmp, file

2012-12-19 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- qapi-schema.json |9 +- qemu-char.c | 77 +- 2 files changed, 84 insertions(+), 2 deletions(-) diff --git a/qapi-schema.json b/qapi-schema.json index e3f0d44..8904d36 100644 --- a/qapi-schema.json

[Qemu-devel] [PATCH 2/9] chardev: fix QemuOpts lifecycle

2012-12-19 Thread Gerd Hoffmann
qemu_chr_new_from_opts handles QemuOpts release now, so callers don't have to worry. It will either be saved in CharDriverState, then released in qemu_chr_delete, or in the error case released instantly. Signed-off-by: Gerd Hoffmann --- qemu-char.c | 15 ++- qemu-char.h |1 +

[Qemu-devel] [PATCH 4/9] chardev: hotplug, qmp, null

2012-12-19 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- qapi-schema.json | 32 qemu-char.c | 34 ++ qmp-commands.hx | 50 ++ 3 files changed, 116 insertions(+), 0 deletions(-) diff --git a/qapi-

  1   2   3   >