Skip to content
Commit 6389ee94 authored by Avi Kivity's avatar Avi Kivity
Browse files

KVM: Pull extra page fault information into struct x86_exception



Currently page fault cr2 and nesting infomation are carried outside
the fault data structure.  Instead they are placed in the vcpu struct,
which results in confusion as global variables are manipulated instead
of passing parameters.

Fix this issue by adding address and nested fields to struct x86_exception,
so this struct can carry all information associated with a fault.

Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
Tested-by: default avatarJoerg Roedel <joerg.roedel@amd.com>
Tested-by: default avatarGleb Natapov <gleb@redhat.com>
Signed-off-by: default avatarMarcelo Tosatti <mtosatti@redhat.com>
parent 8c28d031
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment