mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
x86/cpuid: Disallow policy updates once the domain is running
On real hardware, the bulk of CPUID data is system-specific and constant. Hold the toolstack to the same behaviour when constructing domains. Values which are expected to change dynamically (e.g. OSXSAVE) are unaffected and continue to function as before. Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> Reviewed-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
1 parent
1f24be6c94
commit
3d0cab7b5d
1 file changed
+2
@@ -941,6 +941,8 @@ long arch_do_domctl(
|
||||
case XEN_DOMCTL_set_cpuid:
|
||||
if ( d == currd ) /* no domain_pause() */
|
||||
ret = -EINVAL;
|
||||
else if ( d->creation_finished )
|
||||
ret = -EEXIST; /* No changing once the domain is running. */
|
||||
else
|
||||
{
|
||||
domain_pause(d);
|
||||
|
||||