Re: [PATCH v3 4/8] KVM-HV: Add VCPU running/pre-empted state for guest

2012-08-04 Thread Nikunj A Dadhania
On Fri, 3 Aug 2012 14:31:22 -0300, Marcelo Tosatti mtosa...@redhat.com wrote: On Fri, Aug 03, 2012 at 11:25:44AM +0530, Nikunj A Dadhania wrote: On Thu, 2 Aug 2012 16:56:28 -0300, Marcelo Tosatti mtosa...@redhat.com wrote: + case MSR_KVM_VCPU_STATE: +

Re: [PATCH v3 4/8] KVM-HV: Add VCPU running/pre-empted state for guest

2012-08-03 Thread Marcelo Tosatti
On Fri, Aug 03, 2012 at 11:25:44AM +0530, Nikunj A Dadhania wrote: On Thu, 2 Aug 2012 16:56:28 -0300, Marcelo Tosatti mtosa...@redhat.com wrote: + case MSR_KVM_VCPU_STATE: + vcpu-arch.v_state.vs_page = gfn_to_page(vcpu-kvm, data PAGE_SHIFT); +

Re: [PATCH v3 4/8] KVM-HV: Add VCPU running/pre-empted state for guest

2012-08-02 Thread Marcelo Tosatti
On Tue, Jul 31, 2012 at 04:18:41PM +0530, Nikunj A. Dadhania wrote: From: Nikunj A. Dadhania nik...@linux.vnet.ibm.com Hypervisor code to indicate guest running/pre-empteded status through msr. The page is now pinned during MSR write time and use kmap_atomic/kunmap_atomic to access the

Re: [PATCH v3 4/8] KVM-HV: Add VCPU running/pre-empted state for guest

2012-08-02 Thread Nikunj A Dadhania
On Thu, 2 Aug 2012 16:56:28 -0300, Marcelo Tosatti mtosa...@redhat.com wrote: On Tue, Jul 31, 2012 at 04:18:41PM +0530, Nikunj A. Dadhania wrote: From: Nikunj A. Dadhania nik...@linux.vnet.ibm.com Hypervisor code to indicate guest running/pre-empteded status through msr. The page is now

Re: [PATCH v3 4/8] KVM-HV: Add VCPU running/pre-empted state for guest

2012-08-02 Thread Nikunj A Dadhania
On Thu, 2 Aug 2012 16:56:28 -0300, Marcelo Tosatti mtosa...@redhat.com wrote: + case MSR_KVM_VCPU_STATE: + vcpu-arch.v_state.vs_page = gfn_to_page(vcpu-kvm, data PAGE_SHIFT); + vcpu-arch.v_state.vs_offset = data ~(PAGE_MASK | KVM_MSR_ENABLED); Assign

[PATCH v3 4/8] KVM-HV: Add VCPU running/pre-empted state for guest

2012-07-31 Thread Nikunj A. Dadhania
From: Nikunj A. Dadhania nik...@linux.vnet.ibm.com Hypervisor code to indicate guest running/pre-empteded status through msr. The page is now pinned during MSR write time and use kmap_atomic/kunmap_atomic to access the shared area vcpu_state area. Suggested-by: Marcelo Tosatti