KVM: Fold kvm_run::exit_type into kvm_run::exit_reason
authorAvi Kivity <avi@qumranet.com>
Sun, 4 Mar 2007 12:17:08 +0000 (14:17 +0200)
committerAvi Kivity <avi@qumranet.com>
Thu, 3 May 2007 07:52:24 +0000 (10:52 +0300)
commit8eb7d334bd8e693340ee198280f7d45035cdab8c
tree438ec0b6b6c7714e436884576a3fdce84507813f
parentb4e63f560beb187cffdaf706e534a1e2f9effb66
KVM: Fold kvm_run::exit_type into kvm_run::exit_reason

Currently, userspace is told about the nature of the last exit from the
guest using two fields, exit_type and exit_reason, where exit_type has
just two enumerations (and no need for more).  So fold exit_type into
exit_reason, reducing the complexity of determining what really happened.

Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/kvm_main.c
drivers/kvm/svm.c
drivers/kvm/vmx.c
include/linux/kvm.h