Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 115341
b: refs/heads/master
c: 6844dec
h: refs/heads/master
i:
  115339: 79d7fee
v: v3
  • Loading branch information
Marcelo Tosatti authored and Avi Kivity committed Oct 15, 2008
1 parent 5ef9e12 commit 3376f21
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0738541396be165995c7f2387746eb0b47024fec
refs/heads/master: 6844dec6948679d084f054235fee19ba4e3a3096
14 changes: 14 additions & 0 deletions trunk/arch/x86/kvm/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1173,6 +1173,20 @@ static void page_header_update_slot(struct kvm *kvm, void *pte, gfn_t gfn)
__set_bit(slot, &sp->slot_bitmap);
}

static void mmu_convert_notrap(struct kvm_mmu_page *sp)
{
int i;
u64 *pt = sp->spt;

if (shadow_trap_nonpresent_pte == shadow_notrap_nonpresent_pte)
return;

for (i = 0; i < PT64_ENT_PER_PAGE; ++i) {
if (pt[i] == shadow_notrap_nonpresent_pte)
set_shadow_pte(&pt[i], shadow_trap_nonpresent_pte);
}
}

struct page *gva_to_page(struct kvm_vcpu *vcpu, gva_t gva)
{
struct page *page;
Expand Down

0 comments on commit 3376f21

Please sign in to comment.