alistair23-linux/arch/x86/kvm
Paolo Bonzini 3c2e7f7de3 KVM: SVM: use NPT page attributes
Right now, NPT page attributes are not used, and the final page
attribute depends solely on gPAT (which however is not synced
correctly), the guest MTRRs and the guest page attributes.

However, we can do better by mimicking what is done for VMX.
In the absence of PCI passthrough, the guest PAT can be ignored
and the page attributes can be just WB.  If passthrough is being
used, instead, keep respecting the guest PAT, and emulate the guest
MTRRs through the PAT field of the nested page tables.

The only snag is that WP memory cannot be emulated correctly,
because Linux's default PAT setting only includes the other types.

Tested-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2015-07-10 13:25:26 +02:00
..
assigned-dev.c
assigned-dev.h
cpuid.c KVM: VMX: fix vmwrite to invalid VMCS 2015-07-10 13:25:25 +02:00
cpuid.h KVM: x86: save/load state on SMM switch 2015-06-04 16:17:46 +02:00
emulate.c KVM: x86: save/load state on SMM switch 2015-06-04 16:17:46 +02:00
i8254.c KVM: x86: make vapics_in_nmi_mode atomic 2015-07-03 18:55:17 +02:00
i8254.h
i8259.c
ioapic.c
ioapic.h
iommu.c KVM: count number of assigned devices 2015-07-10 13:25:26 +02:00
irq.c
irq.h
irq_comm.c
Kconfig KVM: x86: mark legacy PCI device assignment as deprecated 2015-06-05 17:26:39 +02:00
kvm_cache_regs.h KVM: x86: API changes for SMM support 2015-06-04 16:01:11 +02:00
lapic.c KVM: x86: keep track of LVT0 changes under APICv 2015-07-03 18:55:18 +02:00
lapic.h KVM: x86: keep track of LVT0 changes under APICv 2015-07-03 18:55:18 +02:00
Makefile KVM: x86/vPMU: Define kvm_pmu_ops to support vPMU function dispatch 2015-06-23 14:12:14 +02:00
mmu.c KVM: x86: reintroduce kvm_is_mmio_pfn 2015-07-10 13:25:24 +02:00
mmu.h KVM: MMU: fix MTRR update 2015-05-19 20:52:42 +02:00
mmu_audit.c Minor merge needed, due to function move. 2015-07-01 10:49:25 -07:00
mmutrace.h
mtrr.c KVM: MTRR: do not map huge page for non-consistent range 2015-06-19 17:16:29 +02:00
paging_tmpl.h KVM: x86: use vcpu-specific functions to read/write/translate GFNs 2015-06-05 17:26:36 +02:00
pmu.c KVM: x86/vPMU: Define kvm_pmu_ops to support vPMU function dispatch 2015-06-23 14:12:14 +02:00
pmu.h KVM: x86/vPMU: Define kvm_pmu_ops to support vPMU function dispatch 2015-06-23 14:12:14 +02:00
pmu_amd.c KVM: x86/vPMU: Implement AMD vPMU code for KVM 2015-06-23 14:12:15 +02:00
pmu_intel.c KVM: x86/vPMU: Define kvm_pmu_ops to support vPMU function dispatch 2015-06-23 14:12:14 +02:00
svm.c KVM: SVM: use NPT page attributes 2015-07-10 13:25:26 +02:00
trace.h KVM: x86: save/load state on SMM switch 2015-06-04 16:17:46 +02:00
tss.h
vmx.c This patch series contains several clean ups and even a new trace clock 2015-06-26 14:02:43 -07:00
x86.c KVM: count number of assigned devices 2015-07-10 13:25:26 +02:00
x86.h KVM: MTRR: do not map huge page for non-consistent range 2015-06-19 17:16:29 +02:00