lkml.org 
[lkml]   [2015]   [Apr]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] kvm: x86: svm: remove SVM_EXIT_READ_CR* intercepts
2015-03-12 17:17-0400, Bandan Das:
> Joel Schopp <joel.schopp@amd.com> writes:
> > @@ -2968,29 +2964,10 @@ static int cr_interception(struct vcpu_svm *svm)
> > kvm_queue_exception(&svm->vcpu, UD_VECTOR);
> > return 1;
> > }
> > - } else { /* mov from cr */
> > - [reads of CR 0..8]
> > + } else { /* mov from cr, should never trap in svm */
> > + WARN(1, "unhandled read from CR%d", cr);
> > + kvm_queue_exception(&svm->vcpu, UD_VECTOR);
> > + return 1;
>
> Can we end up here if a nested hypervisor sets cr read interception ?

No. If the nested hypervisor sets intercept bits, we're going to detect
them in 'handle_exit -> nested_svm_exit_handled -> nested_svm_intercept'
and enter L1 before the cr_interception handler.


\
 
 \ /
  Last update: 2015-04-03 15:01    [W:0.069 / U:0.676 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site