int main(void)
{ struct kvm_vcpu *vcpus[KVM_MAX_VCPUS]; struct kvm_vcpu *vcpuN; struct kvm_vm *vm;
pthread_t thread;
time_t t; int i;
kvm_static_assert(KVM_MAX_VCPUS > MAX_XAPIC_ID);
/* * Create the max number of vCPUs supported by selftests so that KVM * has decent amount of work to do when recalculating the map, i.e. to * make the problematic window large enough to hit.
*/
vm = vm_create_with_vcpus(KVM_MAX_VCPUS, NULL, vcpus);
/* * Enable x2APIC on all vCPUs so that KVM doesn't bail from the recalc * due to vCPUs having aliased xAPIC IDs (truncated to 8 bits).
*/ for (i = 0; i < KVM_MAX_VCPUS; i++)
vcpu_set_msr(vcpus[i], MSR_IA32_APICBASE, LAPIC_X2APIC);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.