Re: [PATCH v6 6/6] KVM: Use eoi to track RTC interrupt delivery status

2013-03-24 Thread Gleb Natapov
On Fri, Mar 22, 2013 at 10:50:55AM +, Zhang, Yang Z wrote: > Gleb Natapov wrote on 2013-03-22: > > On Fri, Mar 22, 2013 at 08:51:47AM +, Zhang, Yang Z wrote: > >> Gleb Natapov wrote on 2013-03-22: > >>> On Fri, Mar 22, 2013 at 08:37:22AM +, Zhang, Yang Z wrote: > Gleb Natapov wrote

Re: [PULL 0/7] ppc patch queue 2013-03-22

2013-03-24 Thread Gleb Natapov
On Fri, Mar 22, 2013 at 03:25:56PM +0100, Alexander Graf wrote: > Hi Marcelo / Gleb, > > This is my current patch queue for ppc. Please pull. > > Changes include: > > - race-free in-kernel watchdog handling api > - e500 mmu fixes > > Alex > Pulled, thanks. > > The following changes sinc

Re: [PATCH] KVM: allow host header to be included even for !CONFIG_KVM

2013-03-24 Thread Gleb Natapov
On Thu, Mar 21, 2013 at 05:02:15PM -0700, Kevin Hilman wrote: > Gleb Natapov writes: > > > On Thu, Mar 21, 2013 at 02:33:13PM -0500, Scott Wood wrote: > >> On 03/21/2013 02:16:00 PM, Gleb Natapov wrote: > >> >On Thu, Mar 21, 2013 at 01:42:34PM -0500, Scott Wood wrote: > >> >> On 03/21/2013 09:27:

RE: [PATCH] KVM: x86: Avoid busy loops over uninjectable pending APIC timers

2013-03-24 Thread Zhang, Yang Z
Gleb Natapov wrote on 2013-03-22: > On Fri, Mar 22, 2013 at 07:43:03AM -0300, Marcelo Tosatti wrote: >> On Fri, Mar 22, 2013 at 08:53:15AM +0200, Gleb Natapov wrote: >>> On Thu, Mar 21, 2013 at 08:06:41PM -0300, Marcelo Tosatti wrote: On Thu, Mar 21, 2013 at 11:13:39PM +0200, Gleb Natapov wrot

Re: [PATCH] KVM: allow host header to be included even for !CONFIG_KVM

2013-03-24 Thread Frederic Weisbecker
2013/3/21 Gleb Natapov : > Isn't is simpler for kernel/context_tracking.c to define empty > __guest_enter()/__guest_exit() if !CONFIG_KVM. That doesn't look right. Off-cases are usually handled from the headers, right? So that we avoid iffdeffery ugliness in core code. -- To unsubscribe from this

Re: [PATCH] KVM: allow host header to be included even for !CONFIG_KVM

2013-03-24 Thread Gleb Natapov
On Sun, Mar 24, 2013 at 02:44:26PM +0100, Frederic Weisbecker wrote: > 2013/3/21 Gleb Natapov : > > Isn't is simpler for kernel/context_tracking.c to define empty > > __guest_enter()/__guest_exit() if !CONFIG_KVM. > > That doesn't look right. Off-cases are usually handled from the > headers, right

Re: [PATCH V2 1/3] tcm_vhost: Wait for pending requests in vhost_scsi_flush()

2013-03-24 Thread Michael S. Tsirkin
On Fri, Mar 22, 2013 at 02:55:27PM +0800, Asias He wrote: > This patch makes vhost_scsi_flush() wait for all the pending requests > issued before the flush operation to be finished. > > Signed-off-by: Asias He > --- > drivers/vhost/tcm_vhost.c | 117 > ++-

Re: [PATCH V4 2/2] tcm_vhost: Add hotplug/hotunplug support

2013-03-24 Thread Michael S. Tsirkin
On Fri, Mar 22, 2013 at 01:39:05PM +0800, Asias He wrote: > In commit 365a7150094 ([SCSI] virtio-scsi: hotplug support for > virtio-scsi), hotplug support is added to virtio-scsi. > > This patch adds hotplug and hotunplug support to tcm_vhost. > > You can create or delete a LUN in targetcli to ho

Re: [PATCH V4 0/2] tcm_vhost hotplug

2013-03-24 Thread Michael S. Tsirkin
On Fri, Mar 22, 2013 at 01:39:03PM +0800, Asias He wrote: > Asias He (2): > tcm_vhost: Introduce tcm_vhost_check_feature() > tcm_vhost: Add hotplug/hotunplug support So this work should stay out of tree until we have 2 users for vhost-scsi, but I sent some comment to help you make progress. >

Re: [Qemu-devel] [PATCH v2] target-i386: Improve x86_cpu_list output

2013-03-24 Thread Andreas Färber
Am 27.02.2013 10:37, schrieb Jan Kiszka: > On 2013-02-27 10:33, Andreas Färber wrote: >> Am 27.02.2013 10:15, schrieb Jan Kiszka: >>> Several issues fixed: >>> - We were missing a bunch of feature lists. Fix this by simply dumping >>>the meta list feature_word_info. >>> - kvm_enabled() cannot

[PATCH v3 5/5] KVM: nVMX: Fix conditions for NMI injection

2013-03-24 Thread Jan Kiszka
From: Jan Kiszka The logic for checking if interrupts can be injected has to be applied also on NMIs. The difference is that if NMI interception is on these events are consumed and blocked by the VM exit. Signed-off-by: Jan Kiszka --- arch/x86/kvm/vmx.c | 35 +

[PATCH v3 4/5] KVM: nVMX: Fix conditions for interrupt injection

2013-03-24 Thread Jan Kiszka
From: Jan Kiszka If we are in guest mode, L0 can only inject events into L2 if L1 has nothing pending. Otherwise, L0 would overwrite L1's events and they would get lost. But even if no injection of L1 is pending, we do not want L0 to interrupt unnecessarily an on going vmentry with all its side e

[PATCH v3 2/5] KVM: nVMX: Rework event injection and recovery

2013-03-24 Thread Jan Kiszka
From: Jan Kiszka The basic idea is to always transfer the pending event injection on vmexit into the architectural state of the VCPU and then drop it from there if it turns out that we left L2 to enter L1, i.e. if we enter prepare_vmcs12. vmcs12_save_pending_events takes care to transfer pending

[PATCH v3 1/5] KVM: nVMX: Fix injection of PENDING_INTERRUPT and NMI_WINDOW exits to L1

2013-03-24 Thread Jan Kiszka
From: Jan Kiszka Check if the interrupt or NMI window exit is for L1 by testing if it has the corresponding controls enabled. This is required when we allow direct injection from L0 to L2 Signed-off-by: Jan Kiszka Reviewed-by: Gleb Natapov --- arch/x86/kvm/vmx.c |9 ++--- 1 files chan

[PATCH v3 0/5] KVM: nVMX: Make direct IRQ/NMI injection work

2013-03-24 Thread Jan Kiszka
This version addresses the comment on patch 2, simplifying it significantly by dropping everything that assumed an L2 vmentry on vmlaunch/vmresume could be canceled by an emulated vmexit to L1. Jan Kiszka (5): KVM: nVMX: Fix injection of PENDING_INTERRUPT and NMI_WINDOW exits to L1 KVM: nV

[PATCH v3 3/5] KVM: VMX: Move vmx_nmi_allowed after vmx_set_nmi_mask

2013-03-24 Thread Jan Kiszka
From: Jan Kiszka vmx_set_nmi_mask will soon be used by vmx_nmi_allowed. No functional changes. Signed-off-by: Jan Kiszka --- arch/x86/kvm/vmx.c | 20 ++-- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 9d9ff74..d

Re: [PATCH] KVM: x86: Avoid busy loops over uninjectable pending APIC timers

2013-03-24 Thread Gleb Natapov
On Sun, Mar 24, 2013 at 10:45:53AM +, Zhang, Yang Z wrote: > Gleb Natapov wrote on 2013-03-22: > > On Fri, Mar 22, 2013 at 07:43:03AM -0300, Marcelo Tosatti wrote: > >> On Fri, Mar 22, 2013 at 08:53:15AM +0200, Gleb Natapov wrote: > >>> On Thu, Mar 21, 2013 at 08:06:41PM -0300, Marcelo Tosatti

Re: [PATCH] vfio powerpc: implement IOMMU driver for VFIO

2013-03-24 Thread David Gibson
On Wed, Mar 20, 2013 at 09:16:24PM -0600, Alex Williamson wrote: > On Thu, 2013-03-21 at 12:55 +1100, David Gibson wrote: > > On Wed, Mar 20, 2013 at 02:45:24PM -0600, Alex Williamson wrote: > > > On Tue, 2013-03-19 at 18:08 +1100, Alexey Kardashevskiy wrote: > > > > VFIO implements platform indepe