Re: [qemu bug] device assignment doesn't work: error: requires KVM support

2011-10-27 Thread Markus Armbruster
Ren, Yongjie yongjie@intel.com writes: -Original Message- From: Alex Williamson [mailto:alex.william...@redhat.com] Sent: Thursday, October 27, 2011 11:04 AM To: Ren, Yongjie Cc: KVM General; Avi Kivity Subject: Re: [qemu bug] device assignment doesn't work: error: requires KVM

RE: [qemu bug] device assignment doesn't work: error: requires KVM support

2011-10-27 Thread Ren, Yongjie
-Original Message- From: Markus Armbruster [mailto:arm...@redhat.com] Sent: Thursday, October 27, 2011 2:50 PM To: Ren, Yongjie Cc: Alex Williamson; KVM General; Avi Kivity Subject: Re: [qemu bug] device assignment doesn't work: error: requires KVM support Ren, Yongjie

RE: [qemu bug] device assignment doesn't work: error: requires KVM support

2011-10-27 Thread Ren, Yongjie
-Original Message- From: kvm-ow...@vger.kernel.org [mailto:kvm-ow...@vger.kernel.org] On Behalf Of Ren, Yongjie Sent: Thursday, October 27, 2011 3:03 PM To: Markus Armbruster Cc: Alex Williamson; KVM General; Avi Kivity Subject: RE: [qemu bug] device assignment doesn't work: error:

Re: [qemu bug] device assignment doesn't work: error: requires KVM support

2011-10-27 Thread Markus Armbruster
Ren, Yongjie yongjie@intel.com writes: -Original Message- From: Markus Armbruster [mailto:arm...@redhat.com] Sent: Thursday, October 27, 2011 2:50 PM To: Ren, Yongjie Cc: Alex Williamson; KVM General; Avi Kivity Subject: Re: [qemu bug] device assignment doesn't work: error:

Re: [qemu bug] device assignment doesn't work: error: requires KVM support

2011-10-27 Thread Markus Armbruster
Ren, Yongjie yongjie@intel.com writes: -Original Message- From: kvm-ow...@vger.kernel.org [mailto:kvm-ow...@vger.kernel.org] On Behalf Of Ren, Yongjie Sent: Thursday, October 27, 2011 3:03 PM To: Markus Armbruster Cc: Alex Williamson; KVM General; Avi Kivity Subject: RE: [qemu

Re: [qemu bug] device assignment doesn't work: error: requires KVM support

2011-10-27 Thread Jan Kiszka
On 2011-10-27 09:20, Markus Armbruster wrote: Ren, Yongjie yongjie@intel.com writes: -Original Message- From: kvm-ow...@vger.kernel.org [mailto:kvm-ow...@vger.kernel.org] On Behalf Of Ren, Yongjie Sent: Thursday, October 27, 2011 3:03 PM To: Markus Armbruster Cc: Alex

Re: [Qemu-devel] qemu/qemu-kvm floppy regression brought by 212ec7baa28cc9d819234fed1541fc1423cfe3d8

2011-10-27 Thread Stefan Hajnoczi
On Wed, Oct 26, 2011 at 03:19:17PM -0200, Lucas Meneghel Rodrigues wrote: On 10/26/2011 01:47 PM, Kevin Wolf wrote: Am 26.10.2011 16:41, schrieb Lucas Meneghel Rodrigues: Hi folks: We've captured a regression with floppy disk on recent qemu (and qemu-kvm, after a code merge). We bisected it

[RFC v3 PATCH 0/4] Send gratuitous packets by guest

2011-10-27 Thread Jason Wang
We only track primary mac address in qemu and send rarp packets after migration to notify the switch to update its mac address table. This may not works when guest have complicated network configurations such as tagged vlan or ipv6, those connections may be lost or stalled after migration. One

[RFC v3 PATCH 1/4] announce self after vm start

2011-10-27 Thread Jason Wang
This patch moves qemu_announce_self() to vm_start() and add a new parameters to control whether sending gratuitous packet is needed. This is bacause the following reasons: - Gratuitous packet is also needed when we resume a stopped vm or successfuly load a state. - The ability of sending

[RFC v3 PATCH 2/4] net: model specific announcing support

2011-10-27 Thread Jason Wang
This patch introduces a function pointer in NetClientInfo which is called during self announcement to do the model specific announcing. The first user would be virtio-net. Signed-off-by: Jason Wang jasow...@redhat.com --- net.h|2 ++ savevm.c |8 +--- 2 files changed, 7

[RFC v3 PATCH 3/4] virtio-net: notify guest to annouce itself

2011-10-27 Thread Jason Wang
It's hard to track all mac address and its usage (vlan, bondings, ipv6) in qemu to send proper gratituous packet. The better choice is let guest to do it. The patch introduces a new rw config status bit of virtio-net, VIRTIO_NET_S_ANNOUNCE which is used to notify guest to announce presence of its

[RFC v3 PATCH 4/4] virtio-net: compat guest announce support.

2011-10-27 Thread Jason Wang
Disable guest announce for compat machine types. Signed-off-by: Jason Wang jasow...@redhat.com --- hw/pc_piix.c | 16 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/hw/pc_piix.c b/hw/pc_piix.c index 8c7f2b7..6ca50a6 100644 --- a/hw/pc_piix.c +++ b/hw/pc_piix.c

[RFC v3 PATCH 5/4 PATCH] virtio-net: send gratuitous packet when needed

2011-10-27 Thread Jason Wang
As hypervior does not have the knowledge of guest network configuration, it's better to ask guest to send gratuitous packet when needed. This make let virtio-net driver can send gratuitous packet. Guest check VIRTIO_NET_S_ANNOUNCE during config change interrupt. When this bit is set, a workqueue

Re: [PATCH RFC V2 3/5] kvm hypervisor : Add two hypercalls to support pv-ticketlock

2011-10-27 Thread Avi Kivity
On 10/26/2011 09:08 PM, Raghavendra K T wrote: On 10/26/2011 04:04 PM, Avi Kivity wrote: On 10/25/2011 08:24 PM, Raghavendra K T wrote: CCing Ryan also So then do also you foresee the need for directed yield at some point, to address LHP? provided we have good improvements to prove.

[PATCH 4/6] Revert kvm: support TSC deadline MSR

2011-10-27 Thread Marcelo Tosatti
This reverts commit bfc2455ddbb41148494a084d15777e6bed7533c3. New patch with subsections will follow. Signed-off-by: Marcelo Tosatti mtosa...@redhat.com --- target-i386/cpu.h |4 +--- target-i386/kvm.c | 14 -- target-i386/machine.c |1 - 3 files changed, 1

[PATCH 5/6] kvm: support TSC deadline MSR with subsection

2011-10-27 Thread Marcelo Tosatti
From: Liu, Jinsong jinsong@intel.com KVM add emulation of lapic tsc deadline timer for guest. This patch is co-operation work at qemu side. Use subsections to save/restore the field (mtosatti). Signed-off-by: Liu, Jinsong jinsong@intel.com Signed-off-by: Marcelo Tosatti

[PATCH 1/6] kvm: Add tool for querying VMX capabilities

2011-10-27 Thread Marcelo Tosatti
From: Jan Kiszka jan.kis...@siemens.com Taken from original qemu-kvm/kvm/scripts/vmxcap. Signed-off-by: Jan Kiszka jan.kis...@siemens.com Signed-off-by: Avi Kivity a...@redhat.com --- scripts/kvm/vmxcap | 224 1 files changed, 224

[PATCH 3/6] kvm: avoid reentring kvm_flush_coalesced_mmio_buffer()

2011-10-27 Thread Marcelo Tosatti
From: Avi Kivity a...@redhat.com mmio callbacks invoked by kvm_flush_coalesced_mmio_buffer() may themselves indirectly call kvm_flush_coalesced_mmio_buffer(). Prevent reentering the function by checking a flag that indicates we're processing coalesced mmio requests. Signed-off-by: Avi Kivity

[PATCH 2/6] kvm: Add top-like kvm statistics script

2011-10-27 Thread Marcelo Tosatti
From: Jan Kiszka jan.kis...@siemens.com Taken from original qemu-kvm/kvm/kvm_stat. Signed-off-by: Jan Kiszka jan.kis...@siemens.com Signed-off-by: Avi Kivity a...@redhat.com --- scripts/kvm/kvm_stat | 480 ++ 1 files changed, 480 insertions(+), 0

[PATCH 0/6] [PULL] qemu-kvm.git uq/master queue

2011-10-27 Thread Marcelo Tosatti
The following changes since commit 952e849c150b4f1b89f8728cba00f925c1d6e75b: Merge remote-tracking branch 'bonzini/split-main-loop-for-anthony' into staging (2011-10-24 10:51:12 -0500) are available in the git repository at: git://github.com/avikivity/qemu.git uq/master Avi Kivity (2):

[PATCH 6/6] i386: wire up MSR_IA32_MISC_ENABLE

2011-10-27 Thread Marcelo Tosatti
From: Avi Kivity a...@redhat.com It's needed for its default value - bit 0 specifies that rep movs is good enough for memcpy, and Linux may use a slower memcpu if it is not set, depending on cpu family/model. Signed-off-by: Avi Kivity a...@redhat.com Signed-off-by: Marcelo Tosatti

QEMU 1.0 test day - November 7th

2011-10-27 Thread Paolo Bonzini
Hi all, QEMU 1.0 test day will be held on November 7th. Any kind of testing that you can contribute will be appreciated---including testing your favorite hypervisor, desktop virtualization or management stack together with the new release. You are also welcome to add testing hints at

Re: [qemu bug] device assignment doesn't work: error: requires KVM support

2011-10-27 Thread Marcelo Tosatti
On Thu, Oct 27, 2011 at 09:38:02AM +0200, Jan Kiszka wrote: But it didn't need to add '--enable-kvm' two weeks ago. Must we add this parameter from now on if we want to use kvm ? Use of KVM should still be the default. If it isn't anymore, can you use bisect to finger the commit that

Re: [PATCH] KVM: SVM: Keep intercepting task switching with NPT enabled

2011-10-27 Thread Marcelo Tosatti
On Tue, Oct 18, 2011 at 06:23:11PM +0200, Jan Kiszka wrote: AMD processors apparently have a bug in the hardware task switching support when NPT is enabled. If the task switch triggers a NPF, we can get wrong EXITINTINFO along with that fault. On resume, spurious exceptions may then be

Re: [PATCH RFC 0/2] KVM: remove host and guest pv mmu support

2011-10-27 Thread Marcelo Tosatti
On Thu, Oct 20, 2011 at 05:44:23PM -0700, Chris Wright wrote: This feature hasn't been in use for some years now. The host side bits are deprecated for almost a year. The guest side would only get used on old hosts, and it's slower than shadow or hw assisted paging. Time to remove it.

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

2011-10-27 Thread Marcelo Tosatti
On Tue, Oct 25, 2011 at 05:55:28PM +0800, Lai Jiangshan wrote: Previous discussions: Which approach you prefer to? I need to know the result before wasting too much time to respin the approach. Yes, sorry about the slow and sometimes conflicting feedback. 1)

[PATCH] kvm tools: Set correct virtio pci device class code

2011-10-27 Thread Asias He
All the virtio pci device is set to class code 0x01, this is wrong. This patch sets the correct class code and makes lspci report correct class type. For example, the net device: Before: $ lspci 00:03.0 SCSI storage controller: Red Hat, Inc Virtio network device After: $ lspci 00:03.0

Re: about NPIV with qemu-kvm.

2011-10-27 Thread ya su
hi, hannes I really appreciate your clarify of my daze. as to improve vm's storage io perfomance as nearly hardware's, it seems the only way is something like sr-iov by hba card. NPIV can not achieve this goal. I remember that LSI released some kind SAS controller(IR 2008?)

[PATCH] kvm tools: Fix MSI-X table size set up

2011-10-27 Thread Asias He
We at most have VIRTIO_PCI_MAX_VQ entries for virt queue, VIRTIO_PCI_MAX_CONFIG entries for config. To quoto the PCI spec: System software reads this field to determine the MSI-X Table Size N, which is encoded as N-1. For example, a returned value of 011 indicates a table

Re: [PATCH] kvm tools: Fix MSI-X table size set up

2011-10-27 Thread Ingo Molnar
* Asias He asias.he...@gmail.com wrote: We at most have VIRTIO_PCI_MAX_VQ entries for virt queue, VIRTIO_PCI_MAX_CONFIG entries for config. To quoto the PCI spec: s/quoto/quote Thanks, Ingo -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message

[PATCH][uq/master] kvm: x86: Avoid runtime allocation of xsave buffer

2011-10-27 Thread Jan Kiszka
Keep a per-VCPU xsave buffer for kvm_put/get_xsave instead of continuously allocating and freeing it on state sync. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- target-i386/cpu.h |3 ++- target-i386/kvm.c | 15 +++ 2 files changed, 9 insertions(+), 9 deletions(-) diff

[PATCH][uq/master] kvm: x86: Use symbols for all xsave field

2011-10-27 Thread Jan Kiszka
Field 0 (FCW+FSW) and 1 (FTW+FOP) were hard-coded so far. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- target-i386/kvm.c | 14 -- 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/target-i386/kvm.c b/target-i386/kvm.c index 23437ee..b838091 100644 ---

Re: [Qemu-devel] qemu/qemu-kvm floppy regression brought by 212ec7baa28cc9d819234fed1541fc1423cfe3d8

2011-10-27 Thread Lucas Meneghel Rodrigues
On 10/27/2011 05:17 AM, Stefan Hajnoczi wrote: On Wed, Oct 26, 2011 at 03:19:17PM -0200, Lucas Meneghel Rodrigues wrote: On 10/26/2011 01:47 PM, Kevin Wolf wrote: Am 26.10.2011 16:41, schrieb Lucas Meneghel Rodrigues: Hi folks: We've captured a regression with floppy disk on recent qemu (and

Re: [PATCH] Set numa topology for max_cpus

2011-10-27 Thread Kevin O'Connor
On Wed, Oct 26, 2011 at 02:19:00PM +0200, Vasilis Liaskovitis wrote: qemu-kvm passes numa/SRAT topology information for smp_cpus to SeaBIOS. However SeaBIOS always expects to setup max_cpus number of SRAT cpu entries (MaxCountCPUs variable in build_srat function of Seabios). When qemu-kvm

Re: [PATCH RFC] acpi: extract aml from .lst

2011-10-27 Thread Kevin O'Connor
On Wed, Oct 26, 2011 at 11:28:02PM +0200, Michael S. Tsirkin wrote: Add ACPI_EXTRACT_ALL_CODE directive, to support extracting AML code from listing into a named array. Use that instead including C file generated by iasl, this makes it possible to include multiple AML tables without resorting

Re: [PATCH] kvm tools: Fix MSI-X table size set up

2011-10-27 Thread Asias He
On 10/28/2011 12:36 AM, Ingo Molnar wrote: * Asias He asias.he...@gmail.com wrote: We at most have VIRTIO_PCI_MAX_VQ entries for virt queue, VIRTIO_PCI_MAX_CONFIG entries for config. To quoto the PCI spec: s/quoto/quote Pekka has fixed this. Thanks. -- Asias He -- To unsubscribe

Re: [Qemu-devel] qemu/qemu-kvm floppy regression brought by 212ec7baa28cc9d819234fed1541fc1423cfe3d8

2011-10-27 Thread Zhi Yong Wu
On Fri, Oct 28, 2011 at 2:57 AM, Lucas Meneghel Rodrigues l...@redhat.com wrote: On 10/27/2011 05:17 AM, Stefan Hajnoczi wrote: On Wed, Oct 26, 2011 at 03:19:17PM -0200, Lucas Meneghel Rodrigues wrote: On 10/26/2011 01:47 PM, Kevin Wolf wrote: Am 26.10.2011 16:41, schrieb Lucas Meneghel

Re: [Qemu-devel] qemu/qemu-kvm floppy regression brought by 212ec7baa28cc9d819234fed1541fc1423cfe3d8

2011-10-27 Thread Lucas Meneghel Rodrigues
On Thu 27 Oct 2011 11:17:48 PM BRST, Zhi Yong Wu wrote: On Fri, Oct 28, 2011 at 2:57 AM, Lucas Meneghel Rodrigues l...@redhat.com wrote: On 10/27/2011 05:17 AM, Stefan Hajnoczi wrote: On Wed, Oct 26, 2011 at 03:19:17PM -0200, Lucas Meneghel Rodrigues wrote: On 10/26/2011 01:47 PM, Kevin

Re: [PATCH 3/6] Add ioctl for KVM_GUEST_STOPPED

2011-10-27 Thread Marcelo Tosatti
On Tue, Oct 25, 2011 at 03:26:16PM -0400, Eric B Munson wrote: Now that we have a flag that will tell the guest it was suspended, create an interface for that communication using a KVM ioctl. Signed-off-by: Eric B Munson emun...@mgebm.net --- arch/x86/include/asm/pvclock.h |3 +++

Re: [PATCH 6/6] Add age out of guest paused flag

2011-10-27 Thread Marcelo Tosatti
On Tue, Oct 25, 2011 at 03:26:19PM -0400, Eric B Munson wrote: The KVM_GUEST_PAUSED flag will prevent a guest from compaining about a soft lockup but it can mask real soft lockups if the flag isn't cleared when it is no longer relevant. This patch adds a kvm ioctl that the hypervisor will use

Re: qcow2 eating up space when formattng Centos

2011-10-27 Thread Philipp Hahn
Hello Anonnymous, cc:kvm On Friday 28 October 2011 04:48:57 day knight wrote: I am using ext3 and your explaination makes sense. May I also ask if the qcow image automatically adjusts to the size or is it ever expanding image? That depends: Originally Qcow2 only expands, since Qemu/kvm