Re: lots of APIC_TMICT exit on VM with assigned NIC

2012-07-15 Thread Avi Kivity
On 07/12/2012 08:32 PM, sheng qiu wrote: > thanks for your reply. > the value is very large. Can you provide samples? If it's large and fairly constant it means a timer keeps being pushed back by the interrupts/ > is there anyway that i can avoid such > frequent exits due to APIC_TMICT? do i

Re: Possible KVM bug

2012-07-15 Thread Avi Kivity
On 07/14/2012 07:08 AM, Nick Skeen wrote: > Every time a try and start a kvm-based VM with virt-manager the guest > crashes during boot-up with this message in the host's kernel logger. > > > [ 6762.680687] device eth0 entered promiscuous mode > [ 6769.287090] kvm: 14513: cpu0 unhandled rdmsr: 0x

Re: [PATCH v3 0/2] kvm: level irqfd and new eoifd

2012-07-15 Thread Avi Kivity
On 07/12/2012 07:19 PM, Alex Williamson wrote: > On Thu, 2012-07-12 at 12:35 +0300, Avi Kivity wrote: >> On 07/11/2012 10:57 PM, Alex Williamson wrote: >> >> >> >> > We still have classic KVM device assignment to provide fast-path INTx. >> >> > But if we want to replace it midterm, I think it's ne

Re: [PULL 0/9] ppc patch queue 2012-07-11

2012-07-15 Thread Avi Kivity
On 07/11/2012 03:56 AM, Alexander Graf wrote: > Hi Avi, > > This is my current patch queue for ppc. Please pull. > > It contains the following changes: > > * VERY IMPORTANT (please forward to -stable): > Fix H_CEDE with PR KVM and newer guest kernels > * Prepare some of the booke code fo

Re: [PATCH v3 0/2] kvm: level irqfd and new eoifd

2012-07-15 Thread Avi Kivity
On 07/12/2012 08:38 PM, Alex Williamson wrote: > On Thu, 2012-07-12 at 10:19 -0600, Alex Williamson wrote: >> On Thu, 2012-07-12 at 12:35 +0300, Avi Kivity wrote: >> > On 07/11/2012 10:57 PM, Alex Williamson wrote: >> > >> >> > >> > We still have classic KVM device assignment to provide fast-path

[PATCH 0/3] make KVM PV use apic through APIs

2012-07-15 Thread Michael S. Tsirkin
KVM PV EOI optimization overrides eoi_write apic op with its own version. at Ingo's suggestion, add an API for this and switch kvm to use it, to avoid meddling with core x86 apic driver data structures directly. Ingo, could you please review and let us know whether this matches what you had in min

[PATCH 2/3] kvm: switch to apic_set_eoi_write, apic_write

2012-07-15 Thread Michael S. Tsirkin
Use apic_set_eoi_write, apic_write to avoid meedling in core apic driver data structures directly. Signed-off-by: Michael S. Tsirkin --- arch/x86/kernel/kvm.c | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/arch/x86/kernel/kvm.c b/arch/x86/kernel/kvm.c index 75

[PATCH 1/3] apic: add apic_set_eoi_write for PV use

2012-07-15 Thread Michael S. Tsirkin
KVM PV EOI optimization overrides eoi_write apic op with its own version. Add an API for this to avoid meddling with core x86 apic driver data structures directly. For KVM use, we don't need any guarantees about when the switch to the new op will take place, so it could in theory use this API afte

[PATCH 3/3] Revert "apic: fix kvm build on UP without IOAPIC"

2012-07-15 Thread Michael S. Tsirkin
This reverts commit f9808b7fd422b965cea52e05ba470e0a473c53d3. After commit 'kvm: switch to apic_set_eoi_write, apic_write' the stubs are no longer needed as kvm does not look at apicdrivers anymore. Signed-off-by: Michael S. Tsirkin --- arch/x86/include/asm/apic.h | 5 - 1 file changed, 5 de

Re: [PATCH 0/3] make KVM PV use apic through APIs

2012-07-15 Thread Avi Kivity
On 07/15/2012 03:56 PM, Michael S. Tsirkin wrote: > KVM PV EOI optimization overrides eoi_write apic op with its own > version. at Ingo's suggestion, add an API for this and switch kvm to use > it, to avoid meddling with core x86 apic driver data structures > directly. > > Ingo, could you please r

[PULL] kvm queue

2012-07-15 Thread Avi Kivity
Please pull from git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git uq/master to receive the kvm queue for qemu.git. Features include fixes for the apic device model (including a longstanding bug which caused random failures on 64-bit Windows), exposing new cpu features, and an eventfd API cha

Re: [PATCH v4 2/3] kvm: KVM_EOIFD, an eventfd for EOIs

2012-07-15 Thread Michael S. Tsirkin
On Fri, Jul 13, 2012 at 01:41:05PM -0600, Alex Williamson wrote: > This new ioctl enables an eventfd to be triggered when an EOI is > written for a specified irqchip pin. The first user of this will > be external device assignment through VFIO, using a level irqfd > for asserting a PCI INTx interr

Re: [PATCH v4 2/3] kvm: KVM_EOIFD, an eventfd for EOIs

2012-07-15 Thread Michael S. Tsirkin
On Fri, Jul 13, 2012 at 01:41:05PM -0600, Alex Williamson wrote: > +static int kvm_assign_eoifd(struct kvm *kvm, struct kvm_eoifd *args) > +{ > + struct eventfd_ctx *level_irqfd = NULL, *eventfd = NULL; > + struct _eoifd *eoifd = NULL; > + struct _irq_source *source = NULL; > + unsi

Re: [PATCH v4 0/3] kvm: level irqfd and new eoifd

2012-07-15 Thread Michael S. Tsirkin
On Fri, Jul 13, 2012 at 01:40:48PM -0600, Alex Williamson wrote: > v4: > - KVM_IRQFD_FLAG_LEVEL flag now documented and coded to only be >necessary on assign. > - Lock added to struct _irq_source to maintain the source ID assertion >state to avoid repeat assertions or spurious EOIs. I co

Re: qemu-kvm-1.1.0 crashing with kernel 3.5.0-rc6

2012-07-15 Thread Chris Clayton
On 07/11/12 08:22, Gleb Natapov wrote: On Wed, Jul 11, 2012 at 08:18:17AM +0100, Chris Clayton wrote: On 07/11/12 08:12, Gleb Natapov wrote: On Wed, Jul 11, 2012 at 08:09:42AM +0100, Chris Clayton wrote: Ping. Have I committed a bug-reporting sin in the mail below or is everyone simply too bu

Re: [PATCH] hw/virtio-scsi: Set max_target=0 during vhost-scsi operation

2012-07-15 Thread Zhi Yong Wu
HI, nab, On Fri, Jul 13, 2012 at 6:08 AM, Nicholas A. Bellinger wrote: > Hi Zhi, > > On Thu, 2012-07-12 at 14:59 +0800, Zhi Yong Wu wrote: >> thanks, it is applied to my vhost_scsi git tree >> git://github.com/wuzhy/qemu.git vhost-scsi >> > > Thanks for picking up this patch in your vhost-scsi tr