Fix LDT descriptor type for KVM_SET_SREG

This patch fixes the KVM_EXIT_UNKNOWN error when running bzImage.

Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
This commit is contained in:
Pekka Enberg
2010-03-25 21:15:27 +02:00
committed by Will Deacon
parent 5360207747
commit 7085d9359d
+1 -1
View 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,