summaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2014-09-02 13:23:06 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2014-09-05 12:01:13 +0200
commit54987b7afa902e886b3a751c056c2a4d4701020e (patch)
tree1a7d4ca35f40849dcfee8a5e6b4bbe6a1785cfdb /virt
parentef54bcfeea6c8b04e2a4f9396e16d88558aa2eee (diff)
downloadlinux-54987b7afa902e886b3a751c056c2a4d4701020e.tar.gz
linux-54987b7afa902e886b3a751c056c2a4d4701020e.tar.bz2
linux-54987b7afa902e886b3a751c056c2a4d4701020e.zip
KVM: x86: propagate exception from permission checks on the nested page fault
Currently, if a permission error happens during the translation of the final GPA to HPA, walk_addr_generic returns 0 but does not fill in walker->fault. To avoid this, add an x86_exception* argument to the translate_gpa function, and let it fill in walker->fault. The nested_page_fault field will be true, since the walk_mmu is the nested_mmu and translate_gpu instead operates on the "outer" (NPT) instance. Reported-by: Valentine Sinitsyn <valentine.sinitsyn@gmail.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions