diff options
| author | Marcelo Tosatti <mtosatti@redhat.com> | 2008-09-23 12:18:33 -0400 |
|---|---|---|
| committer | Avi Kivity <avi@redhat.com> | 2008-10-15 08:25:19 -0400 |
| commit | e8bc217aef67d41d767ede6e7a7eb10f1d47c86c (patch) | |
| tree | f58c99dbf212d25d2fa8145ce46bc7ed5904cb07 /include | |
| parent | 38187c830cab84daecb41169948467f1f19317e3 (diff) | |
KVM: MMU: mode specific sync_page
Examine guest pagetable and bring the shadow back in sync. Caller is responsible
for local TLB flush before re-entering guest mode.
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-x86/kvm_host.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-x86/kvm_host.h b/include/asm-x86/kvm_host.h index 805629c0f15f..8bad9bd9b37e 100644 --- a/include/asm-x86/kvm_host.h +++ b/include/asm-x86/kvm_host.h | |||
| @@ -220,6 +220,8 @@ struct kvm_mmu { | |||
| 220 | gpa_t (*gva_to_gpa)(struct kvm_vcpu *vcpu, gva_t gva); | 220 | gpa_t (*gva_to_gpa)(struct kvm_vcpu *vcpu, gva_t gva); |
| 221 | void (*prefetch_page)(struct kvm_vcpu *vcpu, | 221 | void (*prefetch_page)(struct kvm_vcpu *vcpu, |
| 222 | struct kvm_mmu_page *page); | 222 | struct kvm_mmu_page *page); |
| 223 | int (*sync_page)(struct kvm_vcpu *vcpu, | ||
| 224 | struct kvm_mmu_page *sp); | ||
| 223 | hpa_t root_hpa; | 225 | hpa_t root_hpa; |
| 224 | int root_level; | 226 | int root_level; |
| 225 | int shadow_root_level; | 227 | int shadow_root_level; |
