Skip to contentSkip to conversation

VMX: emulated guest use SYSENTER MSRs

DISCUSSION Jan Beulich 4 participants 6 messages Jul 6, 2007 – Jul 9, 2007

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

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

#2 lore raw
In reply to Jan Beulich
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

#3 lore raw

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

#4 lore raw

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 MSRs

Since 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

#5 lore raw
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 MSRs

Since 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