Re: [PATCH v5 1/6] KVM: nVMX: Use hardware MSR bitmap

2015-02-03 Thread Paolo Bonzini
On 03/02/2015 15:07, Wincy Van wrote: > Ouch, my bad, gmail cut the lines which is over 78 chars. > Since gmail is GFWed(VPN does not work, and I have a web proxy), I > was sending the patches to my gmail via git-send-email with other mail > and forwarding them to the community. Yeah, forwarding

Re: [PATCH v5 1/6] KVM: nVMX: Use hardware MSR bitmap

2015-02-03 Thread Wincy Van
On Tue, Feb 3, 2015 at 9:57 PM, Paolo Bonzini wrote: > > > On 03/02/2015 10:11, Wincy Van wrote: >> @@ -8468,6 +8484,38 @@ static void vmx_start_preemption_timer(struct >> kvm_vcpu *vcpu) >> ns_to_ktime(preemption_timeout), HRTIMER_MODE_REL); >> } > > Hi Wincy, the patch is

Re: [PATCH v5 1/6] KVM: nVMX: Use hardware MSR bitmap

2015-02-03 Thread Paolo Bonzini
On 03/02/2015 10:11, Wincy Van wrote: > @@ -8468,6 +8484,38 @@ static void vmx_start_preemption_timer(struct > kvm_vcpu *vcpu) > ns_to_ktime(preemption_timeout), HRTIMER_MODE_REL); > } Hi Wincy, the patch is corrupted here. Also it has spaces instead of tabs earlier. Ple

[PATCH v5 1/6] KVM: nVMX: Use hardware MSR bitmap

2015-02-03 Thread Wincy Van
Currently, if L1 enables MSR_BITMAP, we will emulate this feature, all of L2's msr access is intercepted by L0. Since many features like virtualize x2apic mode has a complicated logic and it is difficult for us to emulate, we should use hardware and merge the bitmap. This patch introduces nested_v