This reverts commit
7b3c5b70a32303b46d0d051e695f18d72cce5ed0 and
re-enables the usage of x2APIC with nested virtualization.
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Wei Liu <wl@xen.org>
p->extd.itsc = true;
p->basic.vmx = true;
p->extd.svm = true;
-
- /*
- * BODGE: don't announce x2APIC mode when using nested virtualization,
- * as it doesn't work properly. This should be removed once the
- * underlying bug(s) are fixed.
- */
- rc = xc_hvm_param_get(xch, domid, HVM_PARAM_NESTEDHVM, &val);
- if ( rc )
- goto out;
- if ( val )
- p->basic.x2apic = false;
}
rc = x86_cpuid_copy_to_buffer(p, leaves, &nr_leaves);