Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 356150
b: refs/heads/master
c: 52d3d06
h: refs/heads/master
v: v3
  • Loading branch information
Borislav Petkov authored and H. Peter Anvin committed Feb 19, 2013
1 parent d4de5aa commit 1decbb8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f0322bd341fd63261527bf84afd3272bcc2e8dd3
refs/heads/master: 52d3d06e706bdde3d6c5c386deb065c3b4c51618
12 changes: 7 additions & 5 deletions trunk/arch/x86/kernel/cpu/amd.c
Original file line number Diff line number Diff line change
Expand Up @@ -723,12 +723,14 @@ static void __cpuinit init_amd(struct cpuinfo_x86 *c)
* performance degradation for certain nested-paging guests.
* Prevent this conversion by clearing bit 24 in
* MSR_AMD64_BU_CFG2.
*
* NOTE: we want to use the _safe accessors so as not to #GP kvm
* guests on older kvm hosts.
*/
if (c->x86 == 0x10) {
rdmsrl(MSR_AMD64_BU_CFG2, value);
value &= ~(1ULL << 24);
wrmsrl(MSR_AMD64_BU_CFG2, value);
}

rdmsrl_safe(MSR_AMD64_BU_CFG2, &value);
value &= ~(1ULL << 24);
wrmsrl_safe(MSR_AMD64_BU_CFG2, value);
}

rdmsr_safe(MSR_AMD64_PATCH_LEVEL, &c->microcode, &dummy);
Expand Down

0 comments on commit 1decbb8

Please sign in to comment.