Re: [PATCH 2/9] KVM: Expose a version 2 architectural PMU to a guests

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Nov 02, 2011 at 01:09:46PM +0200, Gleb Natapov wrote:
> On Wed, Nov 02, 2011 at 12:01:51PM +0200, Avi Kivity wrote:
> > No.  There is irq_work_queue() for that.  Would be good to avoid it if
> > we know that it's safe to (for example if we have PF_VCPU set).
> > 
> Checking PF_VCPU will not tell us that vcpu is going to reenter guest
> mode again.
> 
Looks like we can check percpu_read(current_vcpu) to see if last vmexit
was due to NMI we are processing and decide according to that.

--
			Gleb.
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux