Re: [kvm-devel] VT-x and Performance counter interrupt in KVM mode

2007-03-28 Thread Avi Kivity
Stephane Eranian wrote: > >> As I'd rather not do that, perhaps we can program the apic to issue an >> nmi instead of an interrupt while in guest mode. On receipt of nmi, we >> can call the host perfmon handler directly to interpret the performance >> counters. >> >> > Yes, but that wou

Re: [kvm-devel] VT-x and Performance counter interrupt in KVM mode

2007-03-28 Thread Stephane Eranian
Avi, On Tue, Mar 27, 2007 at 07:10:58PM +0200, Avi Kivity wrote: > >> > > > >The Performance counters (PMU) cannot be fully virtualized, they need to > >run on the actual MSR registers. The PMU interrupt is controlled by the > >local APIC. To get overflow-based sampling to work in a guest, we

Re: [kvm-devel] VT-x and Performance counter interrupt in KVM mode

2007-03-27 Thread Avi Kivity
Stephane Eranian wrote: > Hi Avi, > > >> Shobha Ranganathan wrote: >> >>> I am trying to capture in vmx.c the hardware >>> performance counter(PMU) interrupt of a i386 Linux >>> kernel running with perfmon on a Core 2 Duo machine >>> running with kvm-15. host is running kvm with VT-x in >>>

Re: [kvm-devel] VT-x and Performance counter interrupt in KVM mode

2007-03-27 Thread Stephane Eranian
Hi Avi, > > Shobha Ranganathan wrote: > > I am trying to capture in vmx.c the hardware > > performance counter(PMU) interrupt of a i386 Linux > > kernel running with perfmon on a Core 2 Duo machine > > running with kvm-15. host is running kvm with VT-x in > > x86-64 mode. > > > > The PMU interrup

Re: [kvm-devel] VT-x and Performance counter interrupt in KVM mode

2007-03-20 Thread Dor Laor
>I am trying to capture in vmx.c the hardware >performance counter(PMU) interrupt of a i386 Linux >kernel running with perfmon on a Core 2 Duo machine >running with kvm-15. host is running kvm with VT-x in >x86-64 mode. > >The PMU interrupt is programmed in the APIC LVT entry >(set to 0xee)by the g

Re: [kvm-devel] VT-x and Performance counter interrupt in KVM mode

2007-03-20 Thread Avi Kivity
Shobha Ranganathan wrote: > I am trying to capture in vmx.c the hardware > performance counter(PMU) interrupt of a i386 Linux > kernel running with perfmon on a Core 2 Duo machine > running with kvm-15. host is running kvm with VT-x in > x86-64 mode. > > The PMU interrupt is programmed in the APIC

[kvm-devel] VT-x and Performance counter interrupt in KVM mode

2007-03-20 Thread Shobha Ranganathan
I am trying to capture in vmx.c the hardware performance counter(PMU) interrupt of a i386 Linux kernel running with perfmon on a Core 2 Duo machine running with kvm-15. host is running kvm with VT-x in x86-64 mode. The PMU interrupt is programmed in the APIC LVT entry (set to 0xee)by the guest OS.