[PATCH] KVM: Simplify is_long_mode()
authorAvi Kivity <avi@qumranet.com>
Sat, 30 Dec 2006 00:49:37 +0000 (16:49 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Sat, 30 Dec 2006 18:56:44 +0000 (10:56 -0800)
commita9058ecd3cd72634cf548588ce79b3f225c9ca32
tree11d1edd2dfdcec03ba6b54b3b06d41cae826b940
parent1e885461f02259d75e7480a70d291d2d8aaa938e
[PATCH] KVM: Simplify is_long_mode()

Instead of doing tricky stuff with the arch dependent virtualization
registers, take a peek at the guest's efer.

This simlifies some code, and fixes some confusion in the mmu branch.

Signed-off-by: Avi Kivity <avi@qumranet.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/kvm/kvm.h
drivers/kvm/kvm_main.c
drivers/kvm/mmu.c
drivers/kvm/paging_tmpl.h
drivers/kvm/svm.c
drivers/kvm/vmx.c