VMX: emulated guest use SYSENTER MSRs
What is the reason for not simply clearing the MSR bitmap bits for these three MSRs, and rather handling the reads/writes in software?
Jan
Probably because the existing code must remain anyway (since not all VMX CPUs support the MSR bitmap), and the benefit of avoiding the intercepts on CPUs that do support it would have entirely negligible performance benefit, since the MSRs are written only at start of day. We could add calls to avoid the intercepts anyway though, if you want to provide a patch.
-- Keir
Quoted 10 lines · Jan Beulich
What is the reason for not simply clearing the MSR bitmap bits for these three MSRs, and rather handling the reads/writes in software?
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 3 lines
What is the reason for not simply clearing the MSR bitmap bits for these three MSRs, and rather handling the reads/writes in software?
I haven't checked those MSRs, the original concern is we need save/restore them when context switch, is this needed?
-Xin
Since they are included in the VMCS, and read from there on save/restore, the vmexit appears to be unnecessary.
-- Keir
Quoted 13 lines · Xin B
Quoted 3 lines
What is the reason for not simply clearing the MSR bitmap bits for these three MSRs, and rather handling the reads/writes in software?
I haven't checked those MSRs, the original concern is we need save/restore them when context switch, is this needed?
-Xin
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
I will send out the patch soon.
-Xin
Quoted 29 lines
-----Original Message-----
From: Keir Fraser [mailto:[email protected]]
Sent: Saturday, July 07, 2007 4:52 PM
To: Li, Xin B; Jan Beulich; [email protected]
Subject: Re: [Xen-devel] VMX: emulated guest use SYSENTER MSRsSince they are included in the VMCS, and read from there on save/restore,
the vmexit appears to be unnecessary.-- Keir
Quoted 3 lines · Xin B
Quoted 3 lines
What is the reason for not simply clearing the MSR bitmap bits for these three MSRs, and rather handling the reads/writes
in software?
Quoted 10 lines
I haven't checked those MSRs, the original concern is we need save/restore them when context switch, is this needed?
-Xin
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 2 lines
Quoted 1 line
Quoted 1 line
"Li, Xin B" <[email protected]> 07.07.07 10:57 >>>
I will send out the patch soon.
Not strictly necessary - I have this as part of a larger patch already. But if you beat me in getting this out, I'll sync up with yours.
Jan
Quoted 29 lines
-----Original Message-----
From: Keir Fraser [mailto:[email protected]]
Sent: Saturday, July 07, 2007 4:52 PM
To: Li, Xin B; Jan Beulich; [email protected]
Subject: Re: [Xen-devel] VMX: emulated guest use SYSENTER MSRsSince they are included in the VMCS, and read from there on save/restore,
the vmexit appears to be unnecessary.-- Keir
Quoted 3 lines · Xin B
Quoted 3 lines
What is the reason for not simply clearing the MSR bitmap bits for these three MSRs, and rather handling the reads/writes
in software?
Quoted 10 lines
I haven't checked those MSRs, the original concern is we need save/restore them when context switch, is this needed?
-Xin
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel