]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Fix LDT descriptor type for KVM_SET_SREG
authorPekka Enberg <penberg@cs.helsinki.fi>
Thu, 25 Mar 2010 19:15:27 +0000 (21:15 +0200)
committerPekka Enberg <penberg@cs.helsinki.fi>
Thu, 25 Mar 2010 19:15:27 +0000 (21:15 +0200)
This patch fixes the KVM_EXIT_UNKNOWN error when running bzImage.

Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
tools/kvm/kvm.c

index 9a2f0931cf62b48b7701f84bb655c90217958c4b..b44409daf97bed66e9add09d2683eacf352d0107 100644 (file)
@@ -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,