Re: [Qemu-devel] [PATCH] socket: add the support for -netdev socket, listen

2012-02-17 Thread Zhi Yong Wu
On Fri, Feb 17, 2012 at 6:24 PM, Stefan Hajnoczi wrote: > On Fri, Feb 17, 2012 at 12:20:08PM +0800, zwu.ker...@gmail.com wrote: >> From: Zhi Yong Wu >> >> As you have known, QEMU upstream currently doesn't support for -netdev >> socket,listen; This patch makes it work now. > > This commit descri

Re: [Qemu-devel] [QEMU] net: adapt dump to support the new syntax

2012-02-17 Thread Zhi Yong Wu
On Fri, Feb 17, 2012 at 6:55 PM, Stefan Hajnoczi wrote: > On Fri, Feb 17, 2012 at 6:54 AM, Zhi Yong Wu wrote: >> I would like to know if some one is playing around with the patchset. >> >> If yes, can any one make one response? I am very interested in rebasing >> it, and then playing with it. > >

Re: [Qemu-devel] [PATCH 6/6] qmp: add balloon-get-memory-stats & event

2012-02-17 Thread Michael Roth
On Fri, Feb 17, 2012 at 03:16:22PM -0200, Luiz Capitulino wrote: > On Fri, 17 Feb 2012 10:55:41 -0600 > Anthony Liguori wrote: > > > On 02/08/2012 02:30 PM, Luiz Capitulino wrote: > > > This commit adds a QMP API for the guest provided memory statistics > > > (long disabled by commit 07b0403dfc2b

[Qemu-devel] [PATCH] w32: Support tests (make check)

2012-02-17 Thread Stefan Weil
Adding $(EXESUF) is needed to make those tests work on w32 hosts, too. Signed-off-by: Stefan Weil --- tests/Makefile | 28 +++- 1 files changed, 15 insertions(+), 13 deletions(-) diff --git a/tests/Makefile b/tests/Makefile index 55e8eb0..29c6bfc 100644 --- a/tests/Mak

Re: [Qemu-devel] [PATCH 6/6] qmp: add balloon-get-memory-stats & event

2012-02-17 Thread Michael Roth
On Fri, Feb 17, 2012 at 02:07:47PM -0600, Anthony Liguori wrote: > On 02/17/2012 11:09 AM, Michael Roth wrote: > >On Fri, Feb 17, 2012 at 10:55:41AM -0600, Anthony Liguori wrote: > >>On 02/08/2012 02:30 PM, Luiz Capitulino wrote: > >>>This commit adds a QMP API for the guest provided memory statist

Re: [Qemu-devel] [PATCH v4 2/3] jazz-led: convert to QOM

2012-02-17 Thread Hervé Poussineau
Andreas Färber a écrit : Am 17.02.2012 20:27, schrieb Hervé Poussineau: Some simplifications in I/O functions are possible because Jazz LED only registers one byte of I/O. Signed-off-by: Hervé Poussineau --- hw/jazz_led.c | 159 +--- hw/mi

Re: [Qemu-devel] [PATCH v4 2/3] jazz-led: convert to QOM

2012-02-17 Thread Andreas Färber
Am 17.02.2012 20:27, schrieb Hervé Poussineau: > Some simplifications in I/O functions are possible because > Jazz LED only registers one byte of I/O. > > Signed-off-by: Hervé Poussineau > --- > hw/jazz_led.c | 159 > +--- > hw/mips.h |

[Qemu-devel] [ANNOUNCE] QEMU 1.0.1.tar.gz is available

2012-02-17 Thread Justin M. Forbes
The QEMU team is pleased to announce the availability of the 1.0.1 stable release. Download instructions are available at http://wiki.qemu.org/Download A detailed change log is available at http://wiki.qemu.org/ChangeLog/1.0 On behalf of the QEMU team, I'd like to thank everyone who contributed

[Qemu-devel] [PATCH 2/5] block: bdrv_eject(): Make eject_flag a real bool

2012-02-17 Thread Luiz Capitulino
Signed-off-by: Luiz Capitulino --- block.c |2 +- block.h |2 +- block/raw-posix.c |6 +++--- block/raw.c |2 +- block_int.h |2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/block.c b/block.c index 8d4cfea..bfb0dec 100644 --

[Qemu-devel] [PATCH v4 3/3] jazz-led: compile it only twice

2012-02-17 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- Makefile.objs|1 + Makefile.target |1 - default-configs/mips-softmmu.mak |1 + default-configs/mips64-softmmu.mak |1 + default-configs/mips64el-softmmu.mak |1 + default-configs/mipsel-sof

[Qemu-devel] [PATCH 5/5] qmp: add DEVICE_TRAY_MOVED event

2012-02-17 Thread Luiz Capitulino
It's emitted whenever the tray is moved by the guest or by HMP/QMP commands. Signed-off-by: Luiz Capitulino --- QMP/qmp-events.txt | 18 ++ block.c| 24 monitor.c |3 +++ monitor.h |1 + 4 files changed, 46 insert

[Qemu-devel] [PATCH 1/5] block: Rename bdrv_mon_event() & BlockMonEventAction

2012-02-17 Thread Luiz Capitulino
They are QMP events, not monitor events. Rename them accordingly. Also, move bdrv_emit_qmp_error_event() up in the file. A new event will be added soon and it's good to have them next each other. Signed-off-by: Luiz Capitulino --- block.c | 58 +++--

Re: [Qemu-devel] [PATCH] qemu-ga: Add guest-getip command

2012-02-17 Thread Anthony Liguori
On 02/17/2012 04:58 AM, Michal Privoznik wrote: On 16.02.2012 21:10, Michael Roth wrote: On Thu, Feb 16, 2012 at 06:25:03PM +0100, Michal Privoznik wrote: This command returns an array of: [ifname, ipaddr, ipaddr_family, prefix, hwaddr] for each interface in the system that has an IP addres

[Qemu-devel] [PATCH 3/5] block: Don't call bdrv_eject() if the tray state didn't change

2012-02-17 Thread Luiz Capitulino
It's not needed. Besides we can then assume that bdrv_eject() is only called when there's a tray state change, which is useful to the DEVICE_TRAY_MOVED event (going to be added in a future commit). Signed-off-by: Luiz Capitulino --- hw/ide/atapi.c |7 +-- hw/scsi-disk.c |7 +-- 2

Re: [Qemu-devel] [PATCH 6/6] qmp: add balloon-get-memory-stats & event

2012-02-17 Thread Anthony Liguori
On 02/17/2012 11:09 AM, Michael Roth wrote: On Fri, Feb 17, 2012 at 10:55:41AM -0600, Anthony Liguori wrote: On 02/08/2012 02:30 PM, Luiz Capitulino wrote: This commit adds a QMP API for the guest provided memory statistics (long disabled by commit 07b0403dfc2b2ac179ae5b48105096cc2d03375a). Th

[Qemu-devel] [PATCH v4 1/3] jazz-led: use trace framework

2012-02-17 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/jazz_led.c | 26 +- trace-events |4 2 files changed, 13 insertions(+), 17 deletions(-) diff --git a/hw/jazz_led.c b/hw/jazz_led.c index f8a2182..1af9268 100644 --- a/hw/jazz_led.c +++ b/hw/jazz_led.c @@ -26,17 +26,7 @@

[Qemu-devel] [PATCH 4/5] ide: drop ide_tray_state_post_load()

2012-02-17 Thread Luiz Capitulino
This is used to sync the physical tray state after migration when using CD-ROM passthrough. However, migrating when using passthrough is broken anyway and shouldn't be supported... So, drop this function as it causes a problem with the DEVICE_TRAY_MOVED event, which is going to be introduced by th

Re: [Qemu-devel] [Spice-devel] [PATCH 3/4] qxl: add user-friendly bar size properties

2012-02-17 Thread Alon Levy
On Fri, Feb 17, 2012 at 04:10:32PM +0100, Gerd Hoffmann wrote: > Add two properties to specify bar sizes in megabytes instead of bytes, > which is alot more user-friendly. > ACK. > Signed-off-by: Gerd Hoffmann > --- > hw/qxl.c |8 > hw/qxl.h |4 > 2 files changed, 12 inse

Re: [Qemu-devel] [Spice-devel] [PATCH 4/4] [experimental] add optinal 64bit vram bar to qxl

2012-02-17 Thread Alon Levy
On Fri, Feb 17, 2012 at 04:10:33PM +0100, Gerd Hoffmann wrote: > This patch adds an 64bit pci bar for vram. It is turned off by default. > It can be enabled by setting the size of the 64bit bar to be larger than > the 32bit bar. Both 32bit and 64bit bar refer to the same memory. Only > the first

Re: [Qemu-devel] [Spice-devel] [PATCH 2/4] qxl: move ram size init to new function

2012-02-17 Thread Alon Levy
On Fri, Feb 17, 2012 at 04:10:31PM +0100, Gerd Hoffmann wrote: > Factor memory bar sizing bits out to a separate function. ACK. > > Signed-off-by: Gerd Hoffmann > --- > hw/qxl.c | 41 ++--- > 1 files changed, 22 insertions(+), 19 deletions(-) > > diff --g

Re: [Qemu-devel] [PATCH 1/4] qxl: drop vram bar minimum size

2012-02-17 Thread Alon Levy
On Fri, Feb 17, 2012 at 04:10:30PM +0100, Gerd Hoffmann wrote: > There is no reason to require a minimum size of 16 MB for the vram. > Lower the limit to 4096 (one page). Make it disapper completely would > break guests. NM my nitpick, more readable this way, ACK. > --- > hw/qxl.c |4 ++-- >

Re: [Qemu-devel] [PATCH 1/4] qxl: drop vram bar minimum size

2012-02-17 Thread Alon Levy
On Fri, Feb 17, 2012 at 04:10:30PM +0100, Gerd Hoffmann wrote: > There is no reason to require a minimum size of 16 MB for the vram. > Lower the limit to 4096 (one page). Make it disapper completely would > break guests. > --- > hw/qxl.c |4 ++-- > 1 files changed, 2 insertions(+), 2 deletion

[Qemu-devel] [PATCH v4 2/3] jazz-led: convert to QOM

2012-02-17 Thread Hervé Poussineau
Some simplifications in I/O functions are possible because Jazz LED only registers one byte of I/O. Signed-off-by: Hervé Poussineau --- hw/jazz_led.c | 159 +--- hw/mips.h |3 - hw/mips_jazz.c |2 +- 3 files changed, 71 insertion

[Qemu-devel] [PATCH v4 0/3] jazz-led: QOM conversion

2012-02-17 Thread Hervé Poussineau
Following patches update jazz-led emulation to current Qemu standards: - use trace framework to report events - remove usage of old_mmio API - convert to QOM Changes v3 -> v4: - rebased Changes v2 -> v3: - rebased Changes v1 -> v2: - rebased Hervé Poussineau (3): jazz-led: use trace framework

[Qemu-devel] [PATCH v3 0/5]: QMP: add DEVICE_TRAY_MOVED event

2012-02-17 Thread Luiz Capitulino
The event name changed, which caused the subject to change too, hope this won't cause confusion. v3 o Rename the event to DEVICE_TRAY_MOVED o Rename the 'ejected' event data to 'tray-open' o Only call bdrv_eject() if the tray state changed o Drop ide_tray_state_post_load() QMP/qmp-events.txt |

Re: [Qemu-devel] [PATCH v2 1/2] qxl: introduce QXLCookie

2012-02-17 Thread Alon Levy
On Fri, Feb 17, 2012 at 09:09:11PM +0200, Alon Levy wrote: > On Fri, Feb 17, 2012 at 01:49:20PM +0100, Marc-André Lureau wrote: > > Hi > > > > On Fri, Feb 17, 2012 at 9:44 AM, Alon Levy wrote: > > > +/* called from spice server thread context only */ > > > +static void interface_async_complete(QX

Re: [Qemu-devel] [PATCH] libcacard configure fixes

2012-02-17 Thread Alon Levy
On Fri, Feb 17, 2012 at 12:16:53PM -0600, Anthony Liguori wrote: > On 02/09/2012 01:05 PM, Paul Brook wrote: > >libcacard is only used by system emulation. > >Only define libcacard_libs/cflags once. > > > >Signed-off-by: Paul Brook > > Ah, I applied this without realizing it was from pbrook :-) >

Re: [Qemu-devel] [PATCH] hw/qxl: allow vram to be sized to 4096 bytes

2012-02-17 Thread Alon Levy
On Fri, Feb 17, 2012 at 04:11:59PM +0100, Gerd Hoffmann wrote: > Hi, > > > -if (qxl->vram_size < 16 * 1024 * 1024) { > > +/* a request of 0 vram_size is translated to the smallest vram that > > doesn't > > + * break current off screen surfaces using drivers */ > > +if (qxl->vram

Re: [Qemu-devel] [PATCH v2 1/2] qxl: introduce QXLCookie

2012-02-17 Thread Alon Levy
On Fri, Feb 17, 2012 at 01:49:20PM +0100, Marc-André Lureau wrote: > Hi > > On Fri, Feb 17, 2012 at 9:44 AM, Alon Levy wrote: > > +/* called from spice server thread context only */ > > +static void interface_async_complete(QXLInstance *sin, uint64_t > > cookie_token) > > +{ > > +    PCIQXLDevic

[Qemu-devel] [PATCH v4 10/10] kvmvapic: Use optionrom helpers

2012-02-17 Thread Jan Kiszka
Use OPTION_ROM_START/END from the common header file, add comment to init code. Signed-off-by: Jan Kiszka --- pc-bios/optionrom/kvmvapic.S | 18 -- 1 files changed, 8 insertions(+), 10 deletions(-) diff --git a/pc-bios/optionrom/kvmvapic.S b/pc-bios/optionrom/kvmvapic.S index

[Qemu-devel] [PATCH v4 02/10] Remove useless casts from cpu iterators

2012-02-17 Thread Jan Kiszka
CPUState::next_cpu is already CPUState *. Signed-off-by: Jan Kiszka --- cpus.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cpus.c b/cpus.c index d0c8340..4e65894 100644 --- a/cpus.c +++ b/cpus.c @@ -853,7 +853,7 @@ static int all_vcpus_paused(void) if

[Qemu-devel] [PATCH v4 07/10] kvmvapic: Introduce TPR access optimization for Windows guests

2012-02-17 Thread Jan Kiszka
This enables acceleration for MMIO-based TPR registers accesses of 32-bit Windows guest systems. It is mostly useful with KVM enabled, either on older Intel CPUs (without flexpriority feature, can also be manually disabled for testing) or any current AMD processor. The approach introduced here is

[Qemu-devel] [PATCH V7 09/11] Introduce apic-msidef.h

2012-02-17 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 v4 06/10] kvmvapic: Add option ROM

2012-02-17 Thread Jan Kiszka
This imports and builds the original VAPIC option ROM of qemu-kvm. Its interaction with QEMU is described in the commit that introduces the corresponding device model. Signed-off-by: Jan Kiszka --- .gitignore |1 + Makefile |2 +- pc-bios/optionrom/M

Re: [Qemu-devel] [RFC] Next gen kvm api

2012-02-17 Thread Scott Wood
On 02/16/2012 06:23 PM, Alexander Graf wrote: > On 16.02.2012, at 21:41, Scott Wood wrote: >> And yes, we do have fancier hardware coming fairly soon for which this >> breaks (TLB0 entries can be loaded without host involvement, as long as >> there's a translation from guest physical to physical in

[Qemu-devel] [PATCH v4 00/10] uq/master: TPR access optimization for Windows guests

2012-02-17 Thread Jan Kiszka
And here is v4: - Changed TPR IP reporting in KVM user space irqchip mode to always report the instruction after the triggering one - Fixed bug that froze TCG with VAPIC enabled during setup (by making run_on_vcpus fully TCG compatible) - Rebased over uq/master - Removed forgotten debug p

[Qemu-devel] omap_i2c: distinction between OMAP2_INTR_REV and OMAP2_GC_REV?

2012-02-17 Thread Peter Maydell
I'm looking at cleaning up some more omap3 patches, and have been working on the omap_i2c related ones. At the moment in omap_i2c.c there are the following #defines for the I2C module revision (as exposed via the revision register): #define OMAP2_INTR_REV 0x34 #define OMAP2_GC_REV 0x34 (plus a

Re: [Qemu-devel] [PATCH v5 07/12] suspend: add system_wakeup monitor command

2012-02-17 Thread Luiz Capitulino
On Wed, 15 Feb 2012 11:28:16 +0100 Gerd Hoffmann wrote: > This patch adds the system_wakeup monitor command which will simply > wake up suspended guests. > > Signed-off-by: Gerd Hoffmann > --- > hmp-commands.hx | 14 ++ > hmp.c|5 + > hmp.h|1

Re: [Qemu-devel] [PATCH] i8259: Do not clear level-triggered lines in IRR on init

2012-02-17 Thread Anthony Liguori
On 01/24/2012 09:29 AM, Jan Kiszka wrote: When an input line is handled as level-triggered, it will immediately raise an IRQ on the output of a PIC again that goes through an init reset. So only clear the edge-triggered inputs from IRR in that scenario. Signed-off-by: Jan Kiszka Applied. Than

Re: [Qemu-devel] [PATCH 0/2] Some small documentation fixes

2012-02-17 Thread Anthony Liguori
On 02/16/2012 11:03 AM, Andreas Färber wrote: Hey, I've taken the liberty of rebasing Anthony's gtk-doc patches to verify the documentation I'm adding in the CPU series. Here's some warning fixes that came out of this endeavor. Two open issues remain: * Identifier extensions (e.g., #Objects) le

Re: [Qemu-devel] [PATCH] configure: Remove OpenBSD workaround for curses probe

2012-02-17 Thread Anthony Liguori
On 02/10/2012 02:59 PM, Brad Smith wrote: Remove the OpenBSD workaround for the curses probe. This has not been necessary for 5 releases now. Signed-off-by: Brad Smith Applied. Thanks. Regards, Anthony Liguori diff --git a/configure b/configure index 763db24..c9729f8 100755 --- a/configu

Re: [Qemu-devel] [PATCH] input: send kbd+mouse events only to running guests.

2012-02-17 Thread Anthony Liguori
On 02/15/2012 02:15 AM, Gerd Hoffmann wrote: Trying to interact with a stopped guest will queue up the events, then send them all at once when the guest continues running, with a high chance to have them cause unwanted actions. Avoid that by only injecting the input events only when the guest is

Re: [Qemu-devel] [PATCH] libcacard configure fixes

2012-02-17 Thread Anthony Liguori
On 02/09/2012 01:05 PM, Paul Brook wrote: libcacard is only used by system emulation. Only define libcacard_libs/cflags once. Signed-off-by: Paul Brook Ah, I applied this without realizing it was from pbrook :-) Regards, Anthony Liguori --- configure | 12 ++-- 1 files changed

Re: [Qemu-devel] [PATCH v4 0/7] pit, hpet, pcspk: fixes & preparation for KVM

2012-02-17 Thread Anthony Liguori
On 02/01/2012 01:31 PM, Jan Kiszka wrote: Changes in V4: - rebased over qom-upstream.13 - comment on rtc_irq_level clearing on reset - fix call to isa_register_ioport by passing the pcspk device Not changed: - PIT pointer property of pcspk (Paolo will port it together with other PROP

Re: [Qemu-devel] [PATCH] qdev: Fix qdev_try_create() semantics

2012-02-17 Thread Anthony Liguori
On 02/16/2012 08:00 PM, Andreas Färber wrote: Am 17.02.2012 02:47, schrieb Andreas Färber: Since QOM'ification, qdev_try_create() uses object_new() internally, which asserts "type != NULL" when the type is not registered. This was revealed by the combination of kvmclock's kvm_enabled() check and

Re: [Qemu-devel] [PATCH v2 0/5] qemu-queue cleanups

2012-02-17 Thread Anthony Liguori
On 01/13/2012 10:34 AM, Paolo Bonzini wrote: These patches slighly change the assortment of lists provided by qemu-queue. QCIRCLEQ is dropped, since it provides no real advantage over QTAILQ (and in fact is unused). QSLIST is introduced and used for free lists. QSIMPLEQ is left in, since it pr

Re: [Qemu-devel] [PATCH] vnc: Don't demote authentication scheme when changing password/disabling login

2012-02-17 Thread Anthony Liguori
On 02/14/2012 06:37 AM, Daniel P. Berrange wrote: From: "Daniel P. Berrange" Currently when disabling login in VNC, the password is cleared out and the authentication protocol is forced to AUTH_VNC. If you're using a stronger authentication protocol, this has the effect of downgrading your secu

[Qemu-devel] [PATCH V7 07/11] Introduce Xen PCI Passthrough, qdevice (1/3)

2012-02-17 Thread Anthony PERARD
From: Allen Kay A more complete history can be found here: git://xenbits.xensource.com/qemu-xen-unstable.git Signed-off-by: Allen Kay Signed-off-by: Guy Zana Signed-off-by: Anthony PERARD --- Makefile.target |2 + hw/xen_common.h |3 + hw/xen

Re: [Qemu-devel] [PATCH 2/7] Convert pc cpu to qdev

2012-02-17 Thread Andreas Färber
Am 17.02.2012 18:16, schrieb Igor Mammedov: > On 02/16/2012 05:09 PM, Andreas Färber wrote: >> We should have a single code path through which we instantiate >> CPUs, currently: cpu_$arch_init(const char *cpu_model) >> With my series completed, this would return an X86CPU object. >> >> Depending on

[Qemu-devel] [PATCH v4 05/10] target-i386: Add infrastructure for reporting TPR MMIO accesses

2012-02-17 Thread Jan Kiszka
This will allow the APIC core to file a TPR access report. Depending on the accelerator and kernel irqchip mode, it will either be delivered right away or queued for later reporting. In TCG mode, we can restart the triggering instruction and can therefore forward the event directly. KVM does not a

[Qemu-devel] [PATCH V7 04/11] configure: Introduce --enable-xen-pci-passthrough.

2012-02-17 Thread Anthony PERARD
Signed-off-by: Anthony PERARD --- configure | 25 + 1 files changed, 25 insertions(+), 0 deletions(-) diff --git a/configure b/configure index 68f9ee6..e2c8d3f 100755 --- a/configure +++ b/configure @@ -132,6 +132,7 @@ vnc_png="" vnc_thread="no" xen="" xen_ctrl_versi

[Qemu-devel] [PATCH v4 04/10] Allow to use pause_all_vcpus from VCPU context

2012-02-17 Thread Jan Kiszka
In order to perform critical manipulations on the VM state in the context of a VCPU, specifically code patching, stopping and resuming of all VCPUs may be necessary. resume_all_vcpus is already compatible, now enable pause_all_vcpus for this use case by stopping the calling context before starting

[Qemu-devel] [PATCH 6/7] add Westmere as a qemu cpu model (v2)

2012-02-17 Thread Eduardo Habkost
Version 1 of this patch was: Message-Id: <1307041990-26194-11-git-send-email-ehabk...@redhat.com http://marc.info/?l=qemu-devel&m=130704415919346 This version doesn't have the duplicate feature bits on extfeature_edx, though, as they are being removed from the Intel models (as they are reserved b

[Qemu-devel] [PATCH 0/7] cpu model bug fixes and definition corrections (v3)

2012-02-17 Thread Eduardo Habkost
These are patches based on a series that John Cooper sent back in May 2011, and that I resent last June. Not all changes from that series are here, but just the most obvious ones. The previous submission of this series is: Message-Id: <1307041990-26194-1-git-send-email-ehabk...@redhat.com> http://

[Qemu-devel] [PATCH v4 01/10] kvm: Set cpu_single_env only once

2012-02-17 Thread Jan Kiszka
As we have thread-local cpu_single_env now and KVM uses exactly one thread per VCPU, we can drop the cpu_single_env updates from the loop and initialize this variable only once during setup. Signed-off-by: Jan Kiszka --- cpus.c|1 + kvm-all.c |5 - 2 files changed, 1 insertions(+

[Qemu-devel] [PATCH V7 05/11] Introduce HostPCIDevice to access a pci device on the host.

2012-02-17 Thread Anthony PERARD
Signed-off-by: Anthony PERARD --- Makefile.target |3 + hw/host-pci-device.c | 278 ++ hw/host-pci-device.h | 75 ++ 3 files changed, 356 insertions(+), 0 deletions(-) create mode 100644 hw/host-pci-device.c create mode 100

[Qemu-devel] [PATCH v4 08/10] kvmvapic: Simplify mp/up_set_tpr

2012-02-17 Thread Jan Kiszka
The CH registers is only written, never read. So we can remove these operations and, in case of up_set_tpr, also the ECX push/pop. Signed-off-by: Jan Kiszka --- pc-bios/optionrom/kvmvapic.S |6 +- 1 files changed, 1 insertions(+), 5 deletions(-) diff --git a/pc-bios/optionrom/kvmvapic.S

[Qemu-devel] [PATCH] qcow2: Fix build with DEBUG_EXT enabled

2012-02-17 Thread Kevin Wolf
Signed-off-by: Kevin Wolf --- block/qcow2.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/block/qcow2.c b/block/qcow2.c index 3692b45..dea12c1 100644 --- a/block/qcow2.c +++ b/block/qcow2.c @@ -89,7 +89,6 @@ static int qcow2_read_extensions(BlockDriverState *bs, uint64

[Qemu-devel] [PATCH V7 06/11] pci.c: Add pci_check_bar_overlap

2012-02-17 Thread Anthony PERARD
From: Yuji Shimada This function helps 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 -

Re: [Qemu-devel] [PATCH v5 12/12] suspend: add qmp events

2012-02-17 Thread Luiz Capitulino
On Wed, 15 Feb 2012 11:28:21 +0100 Gerd Hoffmann wrote: > Send qmp events on suspend and wakeup so libvirt > has a chance to track the vm state. > > Signed-off-by: Gerd Hoffmann > --- > monitor.c |6 ++ > monitor.h |2 ++ > vl.c | 15 +++ > 3 files changed, 23 in

[Qemu-devel] [PATCH v4 09/10] optionsrom: Reserve space for checksum

2012-02-17 Thread Jan Kiszka
Always add a byte before the final 512-bytes alignment to reserve the space for the ROM checksum. Signed-off-by: Jan Kiszka --- pc-bios/optionrom/optionrom.h |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/pc-bios/optionrom/optionrom.h b/pc-bios/optionrom/optionrom.h i

[Qemu-devel] [PATCH V7 01/11] pci_ids: Add INTEL_82599_VF id.

2012-02-17 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 e8235a7..943106a 100644 --- a/hw/pci_ids.h +++ b/hw/pci_ids.h @@ -118,6 +118,7 @@ #define PCI_DEVICE_ID_INTEL_82801I_UHCI6 0x2939 #define PCI

[Qemu-devel] [PATCH v4 03/10] Process pending work while waiting for initial kick-off in TCG mode

2012-02-17 Thread Jan Kiszka
When the TCG thread is started but not yet the machine, we wait in qemu_tcg_cpu_thread_fn on tcg_halt_cond. To allow run_on_cpu already at this time, we need to process pending request in that loop. CC: Paolo Bonzini Signed-off-by: Jan Kiszka --- cpus.c |5 + 1 files changed, 5 insertio

[Qemu-devel] [PATCH 2/7] cpu flags: aliases: pclmuldq|pclmulqdq and ffxsr|fxsr_opt

2012-02-17 Thread Eduardo Habkost
pclmulqdq: /proc/cpuinfo on Linux and all documentation I have seen uses pclmulqdq as the flag name. As the only document using pclmuldq seems to be the Intel CPUID documentation (Application Note 485), it looks like a typo and not the correct name for the flag. ffxsr: AMD docs refer to fxsr_opt a

[Qemu-devel] [PATCH 7/7] cpu defs: uncomment empty extfeatures_ecx definition for Opteron_G1 (v2)

2012-02-17 Thread Eduardo Habkost
This should have no visible effect, but it should just clean up the config file a bit. This is based on a previous patch from John Cooper where this was introduced with many other changes at the same time. Original John's patch submission is at Message-ID: <4ddad5e7.2020...@redhat.com>,

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

2012-02-17 Thread Anthony PERARD
From: Jiang Yunhong A more complete history can be found here: git://xenbits.xensource.com/qemu-xen-unstable.git Signed-off-by: Jiang Yunhong Signed-off-by: Shan Haitao Signed-off-by: Anthony PERARD --- Makefile.target |1 + hw/apic-msidef.h |

[Qemu-devel] [PATCH V7 11/11] xen passthrough: clean up MSI-X table handling

2012-02-17 Thread Anthony PERARD
From: Shan Haitao This patch does cleaning up of QEMU MSI handling. The fixes are: 1. Changes made to MSI-X table mapping handling to eliminate the small windows in which guest could have access to physical MSI-X table. 2. MSI-X table is mapped as read-only to QEMU, as masking of MSI-X is already

[Qemu-devel] [PATCH 4/7] cpu defs: add pse36, mca, mtrr to AMD CPU definitions (v2)

2012-02-17 Thread Eduardo Habkost
This patch adds some missing flags to extfeature_edx, that were missing according to AMD's latest CPUID document. This is based on a previous patch from John Cooper where this was introduced with many other changes at the same time. Original John's patch submission is at Message-ID: <4ddad5e7.2020

[Qemu-devel] [PATCH 3/7] cpu defs: use Intel flag names for Intel models (v2)

2012-02-17 Thread Eduardo Habkost
Use 'i64' instead of 'lm' and 'xd' instead of 'nx' on Intel models. The flags have different names on Intel docs, so use those names for clarity. This is based on a previous patch from John Cooper where this was introduced with many other changes at the same time. Original John's patch submission

Re: [Qemu-devel] [PATCH 6/6] qmp: add balloon-get-memory-stats & event

2012-02-17 Thread Luiz Capitulino
On Fri, 17 Feb 2012 10:55:41 -0600 Anthony Liguori wrote: > On 02/08/2012 02:30 PM, Luiz Capitulino wrote: > > This commit adds a QMP API for the guest provided memory statistics > > (long disabled by commit 07b0403dfc2b2ac179ae5b48105096cc2d03375a). > > > > The approach taken by the original com

Re: [Qemu-devel] [PATCH 2/7] Convert pc cpu to qdev

2012-02-17 Thread Igor Mammedov
On 02/16/2012 05:09 PM, Andreas Färber wrote: Am 16.02.2012 00:16, schrieb Igor Mammedov: Convert pc cpu to qdev device that is attached to icc bus, later hot-plug ability of icc bus will allow to implement cpu hot-plug. Signed-off-by: Igor Mammedov This conflicts with CPU QOM'ification acros

[Qemu-devel] [PATCH V7 08/11] Introduce Xen PCI Passthrough, PCI config space helpers (2/3)

2012-02-17 Thread Anthony PERARD
From: Allen Kay A more complete history can be found here: git://xenbits.xensource.com/qemu-xen-unstable.git Signed-off-by: Allen Kay Signed-off-by: Guy Zana Signed-off-by: Anthony PERARD --- hw/xen_pci_passthrough.c | 10 + hw/xen_pci_passthrough.h |2 + hw/xen

[Qemu-devel] [PATCH V7 00/11] Xen PCI Passthrough

2012-02-17 Thread Anthony PERARD
Hi all, This patch series introduces 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, t

Re: [Qemu-devel] [PATCH][v11] megasas: LSI Megaraid SAS HBA emulation

2012-02-17 Thread Gerhard Wiesinger
On Fri, 17 Feb 2012, Hannes Reinecke wrote: On 02/17/2012 03:03 PM, Gerhard Wiesinger wrote: Hello Hannes, Reason for my problems of non working megasas is that megasas.o was no compiled: Details: Makefile.objs #hw-obj-$(CONFIG_MEGASAS_SCSI_PCI) += megasas.o # OK: hw-obj-y += megasas.o Altho

Re: [Qemu-devel] [PATCH 6/6] qmp: add balloon-get-memory-stats & event

2012-02-17 Thread Michael Roth
On Fri, Feb 17, 2012 at 10:55:41AM -0600, Anthony Liguori wrote: > On 02/08/2012 02:30 PM, Luiz Capitulino wrote: > >This commit adds a QMP API for the guest provided memory statistics > >(long disabled by commit 07b0403dfc2b2ac179ae5b48105096cc2d03375a). > > > >The approach taken by the original c

[Qemu-devel] [PATCH V7 03/11] pci_regs: Add PCI_EXP_TYPE_PCIE_BRIDGE

2012-02-17 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

[Qemu-devel] [PATCH V7 02/11] pci_regs: Fix value of PCI_EXP_TYPE_RC_EC.

2012-02-17 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 @@

Re: [Qemu-devel] [PATCH v2 1/1] exec: Fix watchpoint implementation

2012-02-17 Thread Andreas Färber
Am 17.02.2012 18:03, schrieb Meador Inge: > Fix a bug introduced by commit 1ec9b909ff207a44d5ef2609cb4a2e3d449d485f > where 'watch_mem_write' was modified to fall-through to 'abort' on > every input. > > Signed-off-by: Meador Inge Reviewed-by: Andreas Färber Andreas > --- > * Changes since v1

Re: [Qemu-devel] [RFC][PATCH 09/16 v6] introduce a new monitor command 'dump' to dump guest's memory

2012-02-17 Thread Eric Blake
On 02/17/2012 09:51 AM, Jan Kiszka wrote: > On 2012-02-17 17:32, Eric Blake wrote: >> There are other APIs where qemu has ended up pausing the domain and not >> restoring things back to running when done, and where libvirt has had to >> track existing state prior to starting actions in order to man

[Qemu-devel] [PATCH v2 1/1] exec: Fix watchpoint implementation

2012-02-17 Thread Meador Inge
Fix a bug introduced by commit 1ec9b909ff207a44d5ef2609cb4a2e3d449d485f where 'watch_mem_write' was modified to fall-through to 'abort' on every input. Signed-off-by: Meador Inge --- * Changes since v1: - 'break' out of switch statement instead of 'return'. exec.c | 12 +--- 1 files

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

2012-02-17 Thread Igor Mammedov
On 02/16/2012 01:42 PM, Anthony Liguori wrote: On 02/16/2012 05:25 AM, Jan Kiszka wrote: On 2012-02-16 00:16, Igor Mammedov wrote: 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 A

Re: [Qemu-devel] [PATCH 6/6] qmp: add balloon-get-memory-stats & event

2012-02-17 Thread Anthony Liguori
On 02/08/2012 02:30 PM, Luiz Capitulino wrote: This commit adds a QMP API for the guest provided memory statistics (long disabled by commit 07b0403dfc2b2ac179ae5b48105096cc2d03375a). The approach taken by the original commit (625a5befc2e3200b396594f002218d235e375da5) was to extend the query-ball

[Qemu-devel] [PATCH] kvmppc: update "has-idle" property in hypervisor node

2012-02-17 Thread Liu Yu
Check if host support ev_idle hypercall via pvinfo->flags, If so, then set "has-idle" property in guest dts. Signed-off-by: Liu Yu --- hw/ppc_newworld.c |2 +- hw/ppc_oldworld.c |2 +- hw/ppce500_mpc8544ds.c |6 +- scripts/update-linux-headers

Re: [Qemu-devel] [PATCH v2 1/2] qxl: introduce QXLCookie

2012-02-17 Thread Marc-André Lureau
Hi On Fri, Feb 17, 2012 at 9:44 AM, Alon Levy wrote: > +QXLCookie *qxl_cookie_new(int type, uint64_t io, uint64_t data) > +{ > +    QXLCookie *cookie; > + > +    cookie = g_malloc0(sizeof(*cookie)); > +    cookie->type = type; > +    cookie->io = io; > +    cookie->data = data; > +    return cook

Re: [Qemu-devel] [PATCH v2 1/2] qxl: introduce QXLCookie

2012-02-17 Thread Marc-André Lureau
Hi On Fri, Feb 17, 2012 at 9:44 AM, Alon Levy wrote: > +/* called from spice server thread context only */ > +static void interface_async_complete(QXLInstance *sin, uint64_t cookie_token) > +{ > +    PCIQXLDevice *qxl = container_of(sin, PCIQXLDevice, ssd.qxl); > +    QXLCookie *cookie = (QXLCook

Re: [Qemu-devel] [RFC][PATCH 09/16 v6] introduce a new monitor command 'dump' to dump guest's memory

2012-02-17 Thread Jan Kiszka
On 2012-02-17 17:32, Eric Blake wrote: > There are other APIs where qemu has ended up pausing the domain and not > restoring things back to running when done, and where libvirt has had to > track existing state prior to starting actions in order to manually fix > things after the fact (see libvirt'

[Qemu-devel] [PATCH 1/4] target-i386: Introduce x86_cpuid_version_set_family()

2012-02-17 Thread Andreas Färber
Move the logic for setting the family and extended family into a helper function. To make the helper self-contained and in preparation of future unordered/multiple uses, mask out any previous family values first. Signed-off-by: Andreas Färber --- target-i386/cpuid.c | 15 +++ 1 fi

[Qemu-devel] [PATCH 2/4] target-i386: Introduce x86_cpuid_version_set_model()

2012-02-17 Thread Andreas Färber
Move the logic for setting the model and extended model fields into a helper function. To make the function self-contained and to prepare for future unordered/multiple uses, mask out any previous model values first. Signed-off-by: Andreas Färber --- target-i386/cpuid.c |8 +++- 1 files

[Qemu-devel] [PATCH 0/4] target-i386: Helpers for CPUID version

2012-02-17 Thread Andreas Färber
Hello x86 gurus, This series came out of my qom-cpu work. The reasoning is that in a QOM world we will need this logic twice, once as before and once for -cpu family=x,model=y,stepping=z,model_id=foo. Note: The family=x value is not bounds-checked in cpu_x86_find_by_name()! I'd appreciate if som

[Qemu-devel] [PATCH 4/4] target-i386: Introduce x86_cpuid_set_model_id()

2012-02-17 Thread Andreas Färber
Move the logic to transform the 48-char model ID into the 12-word model value into a helper. Signed-off-by: Andreas Färber --- target-i386/cpuid.c | 33 +++-- 1 files changed, 19 insertions(+), 14 deletions(-) diff --git a/target-i386/cpuid.c b/target-i386/cpuid.c

[Qemu-devel] [PATCH 3/4] target-i386: Introduce x86_cpuid_version_set_stepping()

2012-02-17 Thread Andreas Färber
Move the logic for setting the stepping field into a helper function. To make the function self-contained and to prepare for future unordered/multiple uses, mask out any previous stepping values first. Signed-off-by: Andreas Färber --- target-i386/cpuid.c |8 +++- 1 files changed, 7 ins

Re: [Qemu-devel] [PATCH v1 1/1] exec: Fix watchpoint implementation

2012-02-17 Thread Jan Kiszka
On 2012-02-17 17:36, Meador Inge wrote: > On 02/17/2012 10:28 AM, Jan Kiszka wrote: > >> On 2012-02-17 17:23, Meador Inge wrote: >>> Fix a bug introduced by commit 1ec9b909ff207a44d5ef2609cb4a2e3d449d485f >>> where 'watch_mem_write' was modified to fall-through to 'abort' on >>> every input. >>> >

[Qemu-devel] [PATCH 1/7] cpu models: reorder flag list to match bit order

2012-02-17 Thread Eduardo Habkost
This will make it easier to review and change the flag list in the future. No behaviour change should be introduced by this, as it is just changing the flag order on the config file. To make sure the flag sets are really not changed by this patch, I have used the following stupid script to compar

[Qemu-devel] [PATCH 5/7] cpu defs: remove replicated flags from Intel (v2)

2012-02-17 Thread Eduardo Habkost
This patch removes the replicated feature flags from cpuid 8000_0001:edx (extfeature_edx) from Intel models, as the duplicated feature flags are present only on AMD CPUs. On Intel models, only the i64, syscall, and xd flags are kept on extfeature_edx. This is based on a previous patch from John Co

Re: [Qemu-devel] [PATCH v1 1/1] exec: Fix watchpoint implementation

2012-02-17 Thread Meador Inge
On 02/17/2012 10:28 AM, Jan Kiszka wrote: > On 2012-02-17 17:23, Meador Inge wrote: >> Fix a bug introduced by commit 1ec9b909ff207a44d5ef2609cb4a2e3d449d485f >> where 'watch_mem_write' was modified to fall-through to 'abort' on >> every input. >> >> Signed-off-by: Meador Inge >> --- >> exec.c |

Re: [Qemu-devel] [PATCH 2/2] qdev: print error message before aborting

2012-02-17 Thread Paolo Bonzini
On 02/17/2012 05:30 PM, Peter Maydell wrote: > So now you get: > qemu-system-arm: Insufficient permission to perform this operation > Aborted > > This still isn't really very diagnostic: I had to run the whole > thing under a debugger and look at the backtrace anyway before > I realised I'd hit th

Re: [Qemu-devel] [RFC][PATCH 09/16 v6] introduce a new monitor command 'dump' to dump guest's memory

2012-02-17 Thread Eric Blake
On 02/17/2012 01:52 AM, Wen Congyang wrote: > At 02/15/2012 01:59 AM, Jan Kiszka Wrote: >> On 2012-02-09 04:28, Wen Congyang wrote: >>> Signed-off-by: Wen Congyang >>> +static DumpState *dump_init(int fd, Error **errp) >>> +{ >>> +CPUState *env; >>> +DumpState *s = dump_get_current(); >

Re: [Qemu-devel] [PATCH 2/2] qdev: print error message before aborting

2012-02-17 Thread Peter Maydell
On 14 February 2012 09:19, Paolo Bonzini wrote: > qdev_prop_set_* functions are always called by machine init functions > that should know what they're doing, so they abort on error.  Still, > an assert(!errp) does not aid debugging.  Print an error before aborting. So now you get: qemu-system-ar

Re: [Qemu-devel] [PATCH v1 1/1] exec: Fix watchpoint implementation

2012-02-17 Thread Jan Kiszka
On 2012-02-17 17:23, Meador Inge wrote: > Fix a bug introduced by commit 1ec9b909ff207a44d5ef2609cb4a2e3d449d485f > where 'watch_mem_write' was modified to fall-through to 'abort' on > every input. > > Signed-off-by: Meador Inge > --- > exec.c |6 +++--- > 1 files changed, 3 insertions(+), 3

[Qemu-devel] [PATCH v1 1/1] exec: Fix watchpoint implementation

2012-02-17 Thread Meador Inge
Fix a bug introduced by commit 1ec9b909ff207a44d5ef2609cb4a2e3d449d485f where 'watch_mem_write' was modified to fall-through to 'abort' on every input. Signed-off-by: Meador Inge --- exec.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/exec.c b/exec.c index b81677

  1   2   3   >