libxl/x86: use public interface TSC mode definitions
PATCH 1/1 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 <[email protected]>
tools/libs/light/libxl_x86.c +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__gcswitch (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" );
Quoted 6 lines · Jan Beulich
Now that they're properly represented in the public interface, stop using literal numbers.
No functional change intended.
Signed-off-by Jan Beulich <[email protected]>
Acked-by Andrew Cooper <[email protected]>
Quoted 6 lines · Jan Beulich
Now that they're properly represented in the public interface, stop using literal numbers.
No functional change intended.
Signed-off-by Jan Beulich <[email protected]>
Acked-by Andrew Cooper <[email protected]>
(Take 2, trying to sort out my email aliases properly.)
Quoted 6 lines · Jan Beulich
Now that they're properly represented in the public interface, stop using literal numbers.
No functional change intended.
Signed-off-by Jan Beulich <[email protected]>
Reviewed-by Juergen Gross <[email protected]>
Juergen
Quoted 6 lines · Jan Beulich
Now that they're properly represented in the public interface, stop using literal numbers.
No functional change intended.
Signed-off-by Jan Beulich <[email protected]>
Acked-by Anthony PERARD <[email protected]>
Thanks,
Signature · 1 line
Anthony PERARD