From: Pekka Enberg Date: Thu, 25 Mar 2010 19:15:27 +0000 (+0200) Subject: Fix LDT descriptor type for KVM_SET_SREG X-Git-Tag: next-20110824~3^2~528^2~244 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e1696ce903c61b033171a66872d48f267dca73db;p=karo-tx-linux.git Fix LDT descriptor type for KVM_SET_SREG This patch fixes the KVM_EXIT_UNKNOWN error when running bzImage. Signed-off-by: Pekka Enberg --- diff --git a/tools/kvm/kvm.c b/tools/kvm/kvm.c index 9a2f0931cf62..b44409daf97b 100644 --- a/tools/kvm/kvm.c +++ b/tools/kvm/kvm.c @@ -253,7 +253,7 @@ void kvm__reset_vcpu(struct kvm *self, uint64_t rip) .ldt = (struct kvm_segment) { .limit = 0xffffU, .present = 1, - .type = 0x03U, + .type = 0x02U, }, .gdt = (struct kvm_dtable) { .limit = 0xffffU,