[Qemu-devel] [PATCH V2 07/10] snapshot: qmp use new internal API for external snapshot transaction

2013-01-06 Thread Wenchao Xia
This patch switch to internal common API to take group external snapshots from qmp_transaction interface. qmp layer simply does a translation from user input. Signed-off-by: Wenchao Xia --- blockdev.c | 215 1 files changed, 87 inse

[Qemu-devel] [PATCH V2 06/10] snapshot: implemention of internal common API to take snapshots

2013-01-06 Thread Wenchao Xia
This patch is the implemention of transaction based snapshot internal API. Internal snapshot for specified block device is added, which can be used as part of functionality in one way to live full back up vm seperating internal block snapshot and vmstate(vmstate goes to another file, not implemen

[Qemu-devel] [PATCH V2 05/10] snapshot: design of internal common API to take snapshots

2013-01-06 Thread Wenchao Xia
This patch added API to take snapshots in unified style for both internal or external type. The core structure is based on transaction, for that there is a qmp interface need to support , qmp_transaction, so all operations are packed as requests. In this way a sperate internal layer for snapsho

[Qemu-devel] [PATCH V2 02/10] block: add function deappend()

2013-01-06 Thread Wenchao Xia
This function should revert the append operation. Signed-off-by: Wenchao Xia --- block.c | 21 + include/block/block.h |1 + 2 files changed, 22 insertions(+), 0 deletions(-) diff --git a/block.c b/block.c index 09208c2..48ddf64 100644 --- a/block.c +++

[Qemu-devel] [PATCH V2 01/10] block: export function bdrv_find_snapshot()

2013-01-06 Thread Wenchao Xia
This function is moved from savevm.c to block.c, and exported. Signed-off-by: Wenchao Xia --- block.c | 23 +++ include/block/block.h |2 ++ savevm.c | 22 -- 3 files changed, 25 insertions(+), 22 deletions(-) diff --g

[Qemu-devel] [PATCH V2 03/10] error: add function error_set_check()

2013-01-06 Thread Wenchao Xia
This function will return instead of abort when *errp is not NULL. Also macro error_setg_check is added. Signed-off-by: Wenchao Xia --- error.c | 19 +++ include/qapi/error.h |5 + 2 files changed, 24 insertions(+), 0 deletions(-) diff --git a/error.c b/

[Qemu-devel] [PATCH V2 00/10] snapshot: take block snapshots in unified way

2013-01-06 Thread Wenchao Xia
These patch added a seperated layer to take internal or external snapshots in a unified way, the granularity is block device, so other functions can just combine the request and submit, such as group snapshot, savevm. Total goal are: Live back up vm in external or internal image, which need th

Re: [Qemu-devel] QEMU CDROM tray-open and locked logic

2013-01-06 Thread Peter Lieven
Hi Paolo, Am 04.01.2013 um 19:42 schrieb Paolo Bonzini : > Il 04/01/2013 11:26, Peter Lieven ha scritto: >> Hi, >> >> i have observed the following with qemu-kvm-1.2.0 which I think is not right: >> >> a) if the CDROM is locked and I sent a eject command I get the error that the >> CDROM is loc

[Qemu-devel] [PATCH V10 1/4] add def_print_str and use it in qemu_opts_print.

2013-01-06 Thread Dong Xu Wang
qemu_opts_print has no user now, so can re-write the function safely. qemu_opts_print will be used while using "qemu-img create", it will produce the same output as previous code. The behavior of this function has changed: 1. Print every possible option, whether a value has been set or not. 2. O

[Qemu-devel] [PATCH V10 2/4] Create four opts list related functions

2013-01-06 Thread Dong Xu Wang
This patch will create 4 functions, count_opts_list, append_opts_list, free_opts_list and print_opts_list, they will used in following commits. Signed-off-by: Dong Xu Wang --- v6->v7): 1) Fix typo. v5->v6): 1) allocate enough space in append_opts_list function. include/qemu/option.h |4 ++

[Qemu-devel] [PATCH V10 4/4] remove QEMUOptionParameter related functions and struct

2013-01-06 Thread Dong Xu Wang
Signed-off-by: Dong Xu Wang --- include/qemu/option.h | 32 -- qemu-option.c | 285 - 2 files changed, 0 insertions(+), 317 deletions(-) diff --git a/include/qemu/option.h b/include/qemu/option.h index f784c2e..094663b 100644 --- a/i

[Qemu-devel] [PATCH V10 0/4] replace QEMUOptionParameter with QemuOpts parser

2013-01-06 Thread Dong Xu Wang
Patch 1 add def_value and use it in qemu_opts_print. Patch 2 Create functions to pair with QEMUOptionParameter parser. Patch 3 Use QemuOpts parser in Block. Patch 4 Remove QEMUOptionParameter parser related code. V9->V10) 1) Fix compile error on patch 3. v8->v9) 1) add qemu_ prefix to gluster_

[Qemu-devel] [RESEND PATCH] pci-assign: Enable MSIX on device to match guest

2013-01-06 Thread Alex Williamson
When a guest enables MSIX on a device we evaluate the MSIX vector table, typically find no unmasked vectors and don't switch the device to MSIX mode. This generally works fine and the device will be switched once the guest enables and therefore unmasks a vector. Unfortunately some drivers enable M

Re: [Qemu-devel] [PATCH 28/32] softmmu: move include files to include/sysemu/

2013-01-06 Thread Amos Kong
On Thu, Dec 06, 2012 at 02:07:06PM +0100, Paolo Bonzini wrote: > Signed-off-by: Paolo Bonzini > --- > arch_init.c|6 +++--- > audio/audio.c |2 +- > audio/winwaveaudio.c |2 +- >

[Qemu-devel] [Bug 998435] Re: qemu-kvm-spice doesn't support spice/qxl installs

2013-01-06 Thread Tristan Schmelcher
Possibly related to bug 958549. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/998435 Title: qemu-kvm-spice doesn't support spice/qxl installs Status in QEMU: Confirmed Status in “qemu-kvm-spice

Re: [Qemu-devel] [PATCH v2 0/7] I2C libqos and tmp105 qtest support

2013-01-06 Thread Andreas Färber
Am 14.12.2012 12:34, schrieb Andreas Färber: > Hello, > > Here's I2C support for the libqos framework and an OMAP driver. > The design was inspired by QEMU's i2c_bus and Linux' i2c_adapter. > Seems like low hanging fruit (while we're still waiting for PCI support :)), > hopefully motivating more p

[Qemu-devel] [Bug 998435] Re: qemu-kvm-spice doesn't support spice/qxl installs

2013-01-06 Thread Tristan Schmelcher
Same here. I was trying to install Win7 64-bit on 12.04 with qemu-kvm- spice and neither qxl nor vga graphics would work--both showed a black screen. Configuring the display as VNC instead of SPICE made no difference. But choosing cirrus graphics made it work. -- You received this bug notificatio

Re: [Qemu-devel] [PATCH] virtio-pci: replace byte swap hack

2013-01-06 Thread Blue Swirl
On Sun, Jan 6, 2013 at 6:25 PM, Andreas Färber wrote: > Am 06.01.2013 14:17, schrieb Alexander Graf: >> >> On 30.12.2012, at 13:55, Blue Swirl wrote: >> >>> Remove byte swaps by declaring the config space >>> as native endian. >> >> This is wrong. Virtio-pci config space is split into 2 regions. O

[Qemu-devel] unbounded qemu NetQue's ?

2013-01-06 Thread Luigi Rizzo
Hi, while testing the tx path in qemu without a network backend connected, i noticed that qemu_net_queue_send() builds up an unbounded queue, because QTAILQ* have no notion of a queue length. As a result, memory usage of a qemu instance can grow to extremely large values. I wonder if it makes sen

[Qemu-devel] [PULL] target-s390x rewrite

2013-01-06 Thread Richard Henderson
Now that all the prerequisites are in, I've rebased vs master. Which has included a few minor include path tweaks due to the source base reorg. r~ The following changes since commit 549db5c32bb025501e2eeb23d2e5cc669061eb71: hw/i386: Fix broken build for non POSIX hosts (2013-01-05 10:14:05 +

[Qemu-devel] [PATCH v2 2/2] qdev: Prepare "realized" property

2013-01-06 Thread Andreas Färber
Based on earlier patches by Paolo and me, introduce the QOM realizefn at device level only, as requested by Anthony. For now this just wraps the qdev initfn, which it deprecates. Signed-off-by: Paolo Bonzini Signed-off-by: Andreas Färber Cc: Anthony Liguori --- hw/qdev-core.h |4 +++ hw/q

[Qemu-devel] [PATCH v2 1/2] qdev: Fold state enum into bool realized

2013-01-06 Thread Andreas Färber
Whether the device was initialized or not is QOM-level information and currently unused. Drop it from qdev. This leaves the boolean state of whether or not DeviceClass::init was called or not, a.k.a. "realized". Suggested-by: Anthony Liguori Signed-off-by: Andreas Färber --- hw/qdev-addr.c

[Qemu-devel] [PATCH v2 0/2] QOM realize, device-only

2013-01-06 Thread Andreas Färber
Hello Anthony, Here's a rebased version of device-only QOM realization, otherwise unchanged. This is based on master now and drops all general-purpose qdev cleanups that potentially conflict with Paolo's reference counting change proposal. It will trivially conflict with my qdev unparenting fix, p

Re: [Qemu-devel] [PATCH] virtio-pci: replace byte swap hack

2013-01-06 Thread Alexander Graf
Am 06.01.2013 um 19:26 schrieb Blue Swirl : > On Sun, Jan 6, 2013 at 1:17 PM, Alexander Graf wrote: >> >> On 30.12.2012, at 13:55, Blue Swirl wrote: >> >>> Remove byte swaps by declaring the config space >>> as native endian. >> >> This is wrong. Virtio-pci config space is split into 2 regio

[Qemu-devel] [PATCH ppc-next v2 1/2] target-ppc: Slim conversion of model definitions to QOM subclasses

2013-01-06 Thread Andreas Färber
Since the model list is highly macrofied, keep ppc_def_t for now and save a pointer to it in PowerPCCPUClass. This results in a flat list of subclasses including aliases, to be refined later. Move cpu_ppc_init() to translate_init.c and drop helper.c. Long-term the idea is to turn translate_init.c

[Qemu-devel] [PATCH ppc-next v2 2/2] target-ppc: Error out for -cpu host on unknown PVR

2013-01-06 Thread Andreas Färber
Previously we silently exited, with subclasses we got an opcode warning. Instead, explicitly tell the user what's wrong. An indication for this is -cpu ? showing "host" with an all-zero PVR. Signed-off-by: Andreas Färber --- target-ppc/kvm.c |8 1 Datei geändert, 8 Zeilen hinzugefü

[Qemu-devel] [PATCH ppc-next v2 0/2] PowerPCCPU subclasses

2013-01-06 Thread Andreas Färber
Hi Alex, The CPUListState generalization has been merged now. Here's a rebased version of PowerPCCPU subclasses, intended for v1.4. Available from: git://github.com/afaerber/qemu-cpu.git qom-cpu-ppc-classes.v2 https://github.com/afaerber/qemu-cpu/commits/qom-cpu-ppc-classes.v2 Thanks, Andreas v

Re: [Qemu-devel] [PATCH] virtio-pci: replace byte swap hack

2013-01-06 Thread Blue Swirl
On Sun, Jan 6, 2013 at 1:17 PM, Alexander Graf wrote: > > On 30.12.2012, at 13:55, Blue Swirl wrote: > >> Remove byte swaps by declaring the config space >> as native endian. > > This is wrong. Virtio-pci config space is split into 2 regions. One with > native endianness, the other one with littl

Re: [Qemu-devel] [PATCH] virtio-pci: replace byte swap hack

2013-01-06 Thread Andreas Färber
Am 06.01.2013 14:17, schrieb Alexander Graf: > > On 30.12.2012, at 13:55, Blue Swirl wrote: > >> Remove byte swaps by declaring the config space >> as native endian. > > This is wrong. Virtio-pci config space is split into 2 regions. One with > native endianness, the other one with little endia

Re: [Qemu-devel] [PATCH 3/4] hw: Add test device for unittests execution

2013-01-06 Thread Andreas Färber
Am 04.01.2013 09:16, schrieb Gerd Hoffmann: > From: Lucas Meneghel Rodrigues > > Add a test device which supports the kvmctl ioports, > so one can run the KVM unittest suite. > > Intended Usage: > > qemu-system-x86_64 -nographic \ > -device pc-testdev \ > -device isa-debug-exit,iobase=0

Re: [Qemu-devel] [PATCH 1/4] switch debugcon to memory api

2013-01-06 Thread Andreas Färber
Am 04.01.2013 09:16, schrieb Gerd Hoffmann: > Also some QOM glue while being at it. > > Signed-off-by: Gerd Hoffmann > --- > hw/debugcon.c | 31 --- > 1 files changed, 24 insertions(+), 7 deletions(-) > > diff --git a/hw/debugcon.c b/hw/debugcon.c > index 14f83f1..

Re: [Qemu-devel] [FYI] Testing new patch management scripts...

2013-01-06 Thread Andreas Färber
Am 05.01.2013 04:05, schrieb Anthony Liguori: > Andreas Färber writes: >> Am 02.01.2013 19:07, schrieb Anthony Liguori: >>> 2) Patches that no longer apply via git am --3way will receive a >>> notification. >> >> Isn't Nacked-by too strong of a notification for a mere technical need >> for

Re: [Qemu-devel] [PATCH] vfio-pci: Make host MSI-X enable track guest

2013-01-06 Thread Alex Williamson
On Sun, 2013-01-06 at 10:50 +0200, Michael S. Tsirkin wrote: > On Fri, Dec 21, 2012 at 08:38:07AM -0700, Alex Williamson wrote: > > On Fri, 2012-12-21 at 14:21 +0200, Michael S. Tsirkin wrote: > > > On Thu, Dec 20, 2012 at 03:12:46PM -0700, Alex Williamson wrote: > > > > On Thu, 2012-12-20 at 18:36

Re: [Qemu-devel] [PATCH] pci-assign: Enable MSIX on device to match guest

2013-01-06 Thread Alex Williamson
On Sun, 2013-01-06 at 15:23 +0200, Michael S. Tsirkin wrote: > On Wed, Jan 02, 2013 at 08:49:42AM -0700, Alex Williamson wrote: > > On Fri, 2012-12-21 at 08:46 -0700, Alex Williamson wrote: > > > On Fri, 2012-12-21 at 14:17 +0200, Michael S. Tsirkin wrote: > > > > On Thu, Dec 20, 2012 at 03:15:38PM

Re: [Qemu-devel] [PATCH KVM v2 0/4] fix KVM i8259 IRQ trailing-edge logic

2013-01-06 Thread Gleb Natapov
On Wed, Dec 26, 2012 at 10:39:52PM -0700, Matthew Ogilvie wrote: > Changes since version 1 (from Sep 9): >* Split off patch 1; this is the critical prerequisite to > make the i8254 work with the fixed i8259. >* Add patch 2, to make additional changes to the i8254 > to make it cons

Re: [Qemu-devel] [PATCH 7/7] KVM regsync: Fix do_kvm_cpu_synchronize_state data integrity issue

2013-01-06 Thread Bhushan Bharat-R65777
> -Original Message- > From: Jason J. Herne [mailto:jjhe...@linux.vnet.ibm.com] > Sent: Friday, January 04, 2013 11:10 PM > To: Alexander Graf > Cc: Christian Borntraeger; Anthony Liguori; Marcelo Tosatti; qemu- > de...@nongnu.org qemu-devel; Bhushan Bharat-R65777 > Subject: Re: [Qemu-dev

Re: [Qemu-devel] [PATCH qom-cpu 11/11] target-i386: check/enforce: Check all feature words

2013-01-06 Thread Gleb Natapov
On Fri, Jan 04, 2013 at 08:01:12PM -0200, Eduardo Habkost wrote: > This adds the following feature words to the list of flags to be checked > by kvm_check_features_against_host(): > > - cpuid_7_0_ebx_features > - ext4_features > - kvm_features > - svm_features > > This will ensure the "enforc

Re: [Qemu-devel] [PATCH qom-cpu 10/11] target-i386: Call kvm_check_features_against_host() only if CONFIG_KVM is set

2013-01-06 Thread Gleb Natapov
On Fri, Jan 04, 2013 at 08:01:11PM -0200, Eduardo Habkost wrote: > This will be necessary once kvm_check_features_against_host() starts > using KVM-specific definitions (so it won't compile anymore if > CONFIG_KVM is not set). > > Signed-off-by: Eduardo Habkost > --- > target-i386/cpu.c | 4

Re: [Qemu-devel] [PATCH qom-cpu 09/11] target-i386: check/enforce: Eliminate check_feat field

2013-01-06 Thread Gleb Natapov
On Fri, Jan 04, 2013 at 08:01:10PM -0200, Eduardo Habkost wrote: > Now that all entries have check_feat=~0 on > kvm_check_features_against_host(), we can eliminate check_feat entirely > and make the code check all bits. > > This patch shouldn't introduce any behavior change, as check_feat is set >

Re: [Qemu-devel] [PATCH qom-cpu 08/11] target-i386: check/enforce: Check SVM flag support as well

2013-01-06 Thread Gleb Natapov
On Fri, Jan 04, 2013 at 08:01:09PM -0200, Eduardo Habkost wrote: > When nested SVM is supported, the kernel returns the SVM flag on > GET_SUPPORTED_CPUID[1], so we can check the SVM flag safely on > kvm_check_features_against_host(). > > I don't know why the original code ignored the SVM flag. May

Re: [Qemu-devel] [PATCH qom-cpu 07/11] target-i386: check/enforce: Check all CPUID.80000001H.EDX bits

2013-01-06 Thread Gleb Natapov
On Fri, Jan 04, 2013 at 08:01:08PM -0200, Eduardo Habkost wrote: > I have no idea why PPRO_FEATURES was being ignored on the check of the > CPUID.8001H.EDX bits. I believe it was a mistake, and it was > supposed to be ~(PPRO_FEATURES & CPUID_EXT2_AMD_ALIASES) or just > ~CPUID_EXT2_AMD_ALIASES,

Re: [Qemu-devel] [PATCH qom-cpu 06/11] target-i386: check/enforce: Do not ignore "hypervisor" flag

2013-01-06 Thread Gleb Natapov
On Fri, Jan 04, 2013 at 08:01:07PM -0200, Eduardo Habkost wrote: > We don't need any hack to ignore CPUID_EXT_HYPERVISOR anymore, because > kvm_arch_get_supported_cpuid() now set CPUID_EXT_HYPERVISOR properly. > So, this shouldn't introduce any behavior change, but it makes the code > simpler. > >

Re: [Qemu-devel] [PATCH qom-cpu 05/11] target-i386: check/enforce: Fix CPUID leaf numbers on error messages

2013-01-06 Thread Gleb Natapov
On Sun, Jan 06, 2013 at 04:12:54PM +0200, Gleb Natapov wrote: > On Fri, Jan 04, 2013 at 08:01:06PM -0200, Eduardo Habkost wrote: > > The -cpu check/enforce warnings are printing incorrect information about the > > missing flags. There are no feature flags on CPUID leaves 0 and 0x8000, > > but

Re: [Qemu-devel] [PATCH qom-cpu 05/11] target-i386: check/enforce: Fix CPUID leaf numbers on error messages

2013-01-06 Thread Gleb Natapov
On Fri, Jan 04, 2013 at 08:01:06PM -0200, Eduardo Habkost wrote: > The -cpu check/enforce warnings are printing incorrect information about the > missing flags. There are no feature flags on CPUID leaves 0 and 0x8000, > but > there were references to 0 and 0x8000 in the table at > kvm_chec

Re: [Qemu-devel] [PATCH qom-cpu 04/11] target-i386: kvm: Enable all supported KVM features for -cpu host

2013-01-06 Thread Gleb Natapov
On Fri, Jan 04, 2013 at 08:01:05PM -0200, Eduardo Habkost wrote: > When using -cpu host, we don't need to use the kvm_default_features > variable, as the user is explicitly asking QEMU to enable all feature > supported by the host. > > This changes the kvm_cpu_fill_host() code to use GET_SUPPORTED

Re: [Qemu-devel] [PATCH qom-cpu 03/11] target-i386: kvm: -cpu host: Use GET_SUPPORTED_CPUID for SVM features

2013-01-06 Thread Gleb Natapov
On Fri, Jan 04, 2013 at 08:01:04PM -0200, Eduardo Habkost wrote: > The existing -cpu host code simply set every bit inside svm_features > (initializing it to -1), and that makes it impossible to make the > enforce/check options work properly when the user asks for SVM features > explicitly in the c

Re: [Qemu-devel] [PATCH qom-cpu 02/11] target-i386: Disable kvm_mmu_op by default on pc-1.4

2013-01-06 Thread Gleb Natapov
On Fri, Jan 04, 2013 at 08:01:03PM -0200, Eduardo Habkost wrote: > The kvm_mmu_op feature was removed from the kernel since v3.3 (released > in March 2012), it was marked for removal since January 2011 and it's > slower than shadow or hardware assisted paging (see kernel commit > fb92045843). It do

Re: [Qemu-devel] [PATCH] pci-assign: Enable MSIX on device to match guest

2013-01-06 Thread Michael S. Tsirkin
On Wed, Jan 02, 2013 at 08:49:42AM -0700, Alex Williamson wrote: > On Fri, 2012-12-21 at 08:46 -0700, Alex Williamson wrote: > > On Fri, 2012-12-21 at 14:17 +0200, Michael S. Tsirkin wrote: > > > On Thu, Dec 20, 2012 at 03:15:38PM -0700, Alex Williamson wrote: > > > > On Thu, 2012-12-20 at 18:38 +0

Re: [Qemu-devel] [PATCHv2] linuxboot optionrom: do not jump into loaded kernel in a big real mode

2013-01-06 Thread Alexander Graf
On 06.01.2013, at 14:09, Gleb Natapov wrote: > Big real mode is fully emulated by KVM now, so if control is passed to > the loaded kernel while one of the segment registers is in big real > mode all the real mode part of the Linux start up is emulated. This > slows boot process down. Fix that by

Re: [Qemu-devel] [PATCH] virtio-pci: replace byte swap hack

2013-01-06 Thread Alexander Graf
On 30.12.2012, at 13:55, Blue Swirl wrote: > Remove byte swaps by declaring the config space > as native endian. This is wrong. Virtio-pci config space is split into 2 regions. One with native endianness, the other one with little endian. Alex > > Signed-off-by: Blue Swirl > --- > exec.c

[Qemu-devel] [PATCHv2] linuxboot optionrom: do not jump into loaded kernel in a big real mode

2013-01-06 Thread Gleb Natapov
Big real mode is fully emulated by KVM now, so if control is passed to the loaded kernel while one of the segment registers is in big real mode all the real mode part of the Linux start up is emulated. This slows boot process down. Fix that by resetting ES limit to 0x before jumping into the ke

Re: [Qemu-devel] [PATCH] linuxboot optionrom: do not jump into loaded kernel in a big real mode

2013-01-06 Thread Alexander Graf
On 06.01.2013, at 13:56, Gleb Natapov wrote: > On Sun, Jan 06, 2013 at 01:47:17PM +0100, Alexander Graf wrote: >> >> On 06.01.2013, at 13:36, Gleb Natapov wrote: >> >>> Big real mode is fully emulated by KVM now, so if control is passed to >>> the loaded kernel while one of the segment register

Re: [Qemu-devel] [PATCH] linuxboot optionrom: do not jump into loaded kernel in a big real mode

2013-01-06 Thread Gleb Natapov
On Sun, Jan 06, 2013 at 01:47:17PM +0100, Alexander Graf wrote: > > On 06.01.2013, at 13:36, Gleb Natapov wrote: > > > Big real mode is fully emulated by KVM now, so if control is passed to > > the loaded kernel while one of the segment registers is in big real > > mode all the real mode part of

Re: [Qemu-devel] [PATCH] linuxboot optionrom: do not jump into loaded kernel in a big real mode

2013-01-06 Thread Alexander Graf
On 06.01.2013, at 13:36, Gleb Natapov wrote: > Big real mode is fully emulated by KVM now, so if control is passed to > the loaded kernel while one of the segment registers is in big real > mode all the real mode part of the Linux start up is emulated. This > slows boot process down. Fix that by

[Qemu-devel] [PATCH] linuxboot optionrom: do not jump into loaded kernel in a big real mode

2013-01-06 Thread Gleb Natapov
Big real mode is fully emulated by KVM now, so if control is passed to the loaded kernel while one of the segment registers is in big real mode all the real mode part of the Linux start up is emulated. This slows boot process down. Fix that by resetting ES limit to 0x before jumping into the ke

Re: [Qemu-devel] [PATCH qom-cpu 01/11] target-i386: Don't set any KVM flag by default if KVM is disabled

2013-01-06 Thread Gleb Natapov
On Fri, Jan 04, 2013 at 08:01:02PM -0200, Eduardo Habkost wrote: > This is a cleanup that tries to solve two small issues: > > - We don't need a separate kvm_pv_eoi_features variable just to keep a >constant calculated at compile-time, and this style would require >adding a separate varia

Re: [Qemu-devel] QEMU build fails with Clang?

2013-01-06 Thread Blue Swirl
On Sun, Jan 6, 2013 at 9:40 AM, Brad Smith wrote: > On Sat, Jan 05, 2013 at 04:51:01PM +, Blue Swirl wrote: >> On Sat, Jan 5, 2013 at 1:48 AM, Brad Smith wrote: >> > Supposedly QEMU is able to build with Clang and yet trying to do so >> > I am seeing the build fail as follows.. >> > >> > Comm

[Qemu-devel] [PATCH] optionrom: build with discrete CPP and AS steps

2013-01-06 Thread Blue Swirl
Build option ROM .S files with separate preprocessor and assembler steps because the C compiler could be unsuitable. Signed-off-by: Blue Swirl --- configure |7 ++- rules.mak |7 +-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/configure b/configure index fe18e

[Qemu-devel] [PATCH 3/3] qga: add guest-set-time command

2013-01-06 Thread Lei Li
Signed-off-by: Lei Li --- qga/commands-posix.c | 57 ++ qga/qapi-schema.json | 32 2 files changed, 89 insertions(+), 0 deletions(-) diff --git a/qga/commands-posix.c b/qga/commands-posix.c index 190199d..7fff49a 10

[Qemu-devel] [PATCH 2/3] qga: add guest-get-time command

2013-01-06 Thread Lei Li
Signed-off-by: Lei Li --- qga/commands-posix.c | 12 qga/qapi-schema.json | 17 + 2 files changed, 29 insertions(+), 0 deletions(-) diff --git a/qga/commands-posix.c b/qga/commands-posix.c index 26b0fa0..190199d 100644 --- a/qga/commands-posix.c +++ b/qga/command

[Qemu-devel] [PATCH 1/3] qga: add support to get host time

2013-01-06 Thread Lei Li
Signed-off-by: Lei Li --- qga/commands-posix.c | 18 ++ qga/qapi-schema.json | 17 + 2 files changed, 35 insertions(+), 0 deletions(-) diff --git a/qga/commands-posix.c b/qga/commands-posix.c index a657201..26b0fa0 100644 --- a/qga/commands-posix.c +++ b/qga/c

[Qemu-devel] [RFC PATCH 0/3] Time resync support by qemu-ga

2013-01-06 Thread Lei Li
This patch series attempts to add time resync support to qemu-ga by introducing qemu-ga commands guest-get-time and guest-set-time. Right now, when a guest is paused or migrated to a file then loaded from that file, the guest OS has no idea that there was a big gap in the time. Depending on how lo

Re: [Qemu-devel] QEMU build fails with Clang?

2013-01-06 Thread Brad Smith
On Sat, Jan 05, 2013 at 04:51:01PM +, Blue Swirl wrote: > On Sat, Jan 5, 2013 at 1:48 AM, Brad Smith wrote: > > Supposedly QEMU is able to build with Clang and yet trying to do so > > I am seeing the build fail as follows.. > > > > Comments? > > Clang does not support this kind of assembly co

Re: [Qemu-devel] [PATCH] vfio-pci: Make host MSI-X enable track guest

2013-01-06 Thread Michael S. Tsirkin
On Fri, Dec 21, 2012 at 08:38:07AM -0700, Alex Williamson wrote: > On Fri, 2012-12-21 at 14:21 +0200, Michael S. Tsirkin wrote: > > On Thu, Dec 20, 2012 at 03:12:46PM -0700, Alex Williamson wrote: > > > On Thu, 2012-12-20 at 18:36 +0200, Michael S. Tsirkin wrote: > > > > On Thu, Dec 20, 2012 at 09: