mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
libxl/x86: use public interface TSC mode definitions
Now that they're properly represented in the public interface, stop using literal numbers. No functional change intended. Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Andrew Cooper <andrew.cooper3@citrix.com> Reviewed-by: Juergen Gross <jgross@suse.com> Acked-by: Anthony PERARD <anthony.perard@citrix.com>
This commit is contained in:
1 parent
98d95437ed
commit
be4be3238d
1 file changed
+4
-3
@@ -1,5 +1,6 @@
|
||||
#include "libxl_internal.h"
|
||||
#include "libxl_arch.h"
|
||||
#include <xen/arch-x86/cpuid.h>
|
||||
|
||||
int libxl__arch_domain_prepare_config(libxl__gc *gc,
|
||||
libxl_domain_config *d_config,
|
||||
@@ -486,13 +487,13 @@ int libxl__arch_domain_create(libxl__gc *gc,
|
||||
|
||||
switch (d_config->b_info.tsc_mode) {
|
||||
case LIBXL_TSC_MODE_DEFAULT:
|
||||
tsc_mode = 0;
|
||||
tsc_mode = XEN_CPUID_TSC_MODE_DEFAULT;
|
||||
break;
|
||||
case LIBXL_TSC_MODE_ALWAYS_EMULATE:
|
||||
tsc_mode = 1;
|
||||
tsc_mode = XEN_CPUID_TSC_MODE_ALWAYS_EMULATE;
|
||||
break;
|
||||
case LIBXL_TSC_MODE_NATIVE:
|
||||
tsc_mode = 2;
|
||||
tsc_mode = XEN_CPUID_TSC_MODE_NEVER_EMULATE;
|
||||
break;
|
||||
case LIBXL_TSC_MODE_NATIVE_PARAVIRT:
|
||||
LOGD(ERROR, domid, "TSC Mode native_paravirt (a.k.a PVRDTSCP) has been removed");
|
||||
|
||||