Commit fd717f1
committed
KVM: x86: apply guest MTRR virtualization on host reserved pages
Currently guest MTRR is avoided if kvm_is_reserved_pfn returns true.
However, the guest could prefer a different page type than UC for
such pages. A good example is that pass-throughed VGA frame buffer is
not always UC as host expected.
This patch enables full use of virtual guest MTRRs.
Suggested-by: Xiao Guangrong <guangrong.xiao@linux.intel.com>
Tested-by: Joerg Roedel <jroedel@suse.de> (on AMD)
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>1 parent e098223 commit fd717f1
2 files changed
Lines changed: 5 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1166 | 1166 | | |
1167 | 1167 | | |
1168 | 1168 | | |
1169 | | - | |
| 1169 | + | |
1170 | 1170 | | |
1171 | 1171 | | |
1172 | 1172 | | |
1173 | | - | |
1174 | | - | |
1175 | | - | |
1176 | | - | |
| 1173 | + | |
1177 | 1174 | | |
1178 | 1175 | | |
1179 | 1176 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8632 | 8632 | | |
8633 | 8633 | | |
8634 | 8634 | | |
8635 | | - | |
| 8635 | + | |
8636 | 8636 | | |
8637 | 8637 | | |
8638 | | - | |
| 8638 | + | |
8639 | 8639 | | |
8640 | 8640 | | |
8641 | 8641 | | |
8642 | 8642 | | |
8643 | 8643 | | |
8644 | 8644 | | |
8645 | | - | |
8646 | | - | |
8647 | | - | |
8648 | | - | |
8649 | | - | |
8650 | | - | |
| 8645 | + | |
8651 | 8646 | | |
8652 | 8647 | | |
8653 | 8648 | | |
| |||
0 commit comments