Re: [PART1 RFC v2 09/10] svm: Do not intercept CR8 when enable AVIC

2016-03-14 Thread Paolo Bonzini
On 14/03/2016 07:09, Suravee Suthikulpanit wrote: > By the way, how can we enable APICv only in certain VM? Does Qemu/KVM > have any specific flags that we can pass to enable/disable this? You can use "-cpu kvm64,+hv-synic". Paolo

Re: [PART1 RFC v2 09/10] svm: Do not intercept CR8 when enable AVIC

2016-03-14 Thread Paolo Bonzini
On 14/03/2016 07:09, Suravee Suthikulpanit wrote: > By the way, how can we enable APICv only in certain VM? Does Qemu/KVM > have any specific flags that we can pass to enable/disable this? You can use "-cpu kvm64,+hv-synic". Paolo

Re: [PART1 RFC v2 09/10] svm: Do not intercept CR8 when enable AVIC

2016-03-14 Thread Suravee Suthikulpanit
Hi On 03/07/2016 10:39 PM, Paolo Bonzini wrote: + svm_x86_ops.update_cr8_intercept = NULL; >} else { >svm_x86_ops.deliver_posted_interrupt = NULL; >} >@@ -1116,7 +1119,8 @@ static void init_vmcb(struct vcpu_svm *svm) >set_cr_intercept(svm,

Re: [PART1 RFC v2 09/10] svm: Do not intercept CR8 when enable AVIC

2016-03-14 Thread Suravee Suthikulpanit
Hi On 03/07/2016 10:39 PM, Paolo Bonzini wrote: + svm_x86_ops.update_cr8_intercept = NULL; >} else { >svm_x86_ops.deliver_posted_interrupt = NULL; >} >@@ -1116,7 +1119,8 @@ static void init_vmcb(struct vcpu_svm *svm) >set_cr_intercept(svm,

Re: [PART1 RFC v2 09/10] svm: Do not intercept CR8 when enable AVIC

2016-03-07 Thread Paolo Bonzini
On 04/03/2016 21:46, Suravee Suthikulpanit wrote: > + > + /* Do not do cr8 intercept if AVIC is enabled. */ No need for this comment. > + svm_x86_ops.update_cr8_intercept = NULL; > } else { > svm_x86_ops.deliver_posted_interrupt = NULL; > } >

Re: [PART1 RFC v2 09/10] svm: Do not intercept CR8 when enable AVIC

2016-03-07 Thread Paolo Bonzini
On 04/03/2016 21:46, Suravee Suthikulpanit wrote: > + > + /* Do not do cr8 intercept if AVIC is enabled. */ No need for this comment. > + svm_x86_ops.update_cr8_intercept = NULL; > } else { > svm_x86_ops.deliver_posted_interrupt = NULL; > } >

[PART1 RFC v2 09/10] svm: Do not intercept CR8 when enable AVIC

2016-03-04 Thread Suravee Suthikulpanit
When enable AVIC: * Do not intercept CR8 since this should be handled by AVIC HW. * Also update TPR in APIC backing page when syncing CR8 before VMRUN Signed-off-by: Suravee Suthikulpanit --- arch/x86/kvm/svm.c | 15 +++ 1 file changed, 11

[PART1 RFC v2 09/10] svm: Do not intercept CR8 when enable AVIC

2016-03-04 Thread Suravee Suthikulpanit
When enable AVIC: * Do not intercept CR8 since this should be handled by AVIC HW. * Also update TPR in APIC backing page when syncing CR8 before VMRUN Signed-off-by: Suravee Suthikulpanit --- arch/x86/kvm/svm.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff