Revision 984b5181 target-i386/kvm.c
b/target-i386/kvm.c | ||
---|---|---|
130 | 130 |
* versions of KVM just assumed that it would be at the end of physical |
131 | 131 |
* memory but that doesn't work with more than 4GB of memory. We simply |
132 | 132 |
* refuse to work with those older versions of KVM. */ |
133 |
ret = kvm_ioctl(s, KVM_CHECK_EXTENSION, (void *)KVM_CAP_SET_TSS_ADDR);
|
|
133 |
ret = kvm_ioctl(s, KVM_CHECK_EXTENSION, KVM_CAP_SET_TSS_ADDR); |
|
134 | 134 |
if (ret <= 0) { |
135 | 135 |
fprintf(stderr, "kvm does not support KVM_CAP_SET_TSS_ADDR\n"); |
136 | 136 |
return ret; |
... | ... | |
140 | 140 |
* as unavaible memory. FIXME, need to ensure the e820 map deals with |
141 | 141 |
* this? |
142 | 142 |
*/ |
143 |
return kvm_vm_ioctl(s, KVM_SET_TSS_ADDR, (void *)0xfffbd000);
|
|
143 |
return kvm_vm_ioctl(s, KVM_SET_TSS_ADDR, 0xfffbd000); |
|
144 | 144 |
} |
145 | 145 |
|
146 | 146 |
static void set_v8086_seg(struct kvm_segment *lhs, const SegmentCache *rhs) |
Also available in: Unified diff