Re: [PATCH v2] xen/x86: public: add TSC defines for cpuid leaf 4

2023-01-27 Thread Krister Johansen
On Fri, Jan 27, 2023 at 08:16:18AM +0100, Jan Beulich wrote: > On 26.01.2023 19:02, Krister Johansen wrote: > > On Thu, Jan 26, 2023 at 10:57:01AM +0100, Jan Beulich wrote: > >> On 25.01.2023 19:45, Krister Johansen wrote: > >>> --- a/xen/include/public/arch-x86/cpuid.h > >>> +++

Re: [PATCH v2] xen/x86: public: add TSC defines for cpuid leaf 4

2023-01-26 Thread Jan Beulich
On 26.01.2023 19:02, Krister Johansen wrote: > On Thu, Jan 26, 2023 at 10:57:01AM +0100, Jan Beulich wrote: >> On 25.01.2023 19:45, Krister Johansen wrote: >>> --- a/xen/include/public/arch-x86/cpuid.h >>> +++ b/xen/include/public/arch-x86/cpuid.h >>> @@ -72,6 +72,14 @@ >>> * Sub-leaf 2: EAX:

Re: [PATCH v2] xen/x86: public: add TSC defines for cpuid leaf 4

2023-01-26 Thread Krister Johansen
On Thu, Jan 26, 2023 at 10:57:01AM +0100, Jan Beulich wrote: > On 25.01.2023 19:45, Krister Johansen wrote: > > --- a/xen/include/public/arch-x86/cpuid.h > > +++ b/xen/include/public/arch-x86/cpuid.h > > @@ -72,6 +72,14 @@ > > * Sub-leaf 2: EAX: host tsc frequency in kHz > > */ > > > >

Re: [PATCH v2] xen/x86: public: add TSC defines for cpuid leaf 4

2023-01-26 Thread Krister Johansen
On Thu, Jan 26, 2023 at 09:57:43AM +0100, Jan Beulich wrote: > On 25.01.2023 19:45, Krister Johansen wrote: > > v2: > > - Fix whitespace between comment and #defines (feedback from Jan Beulich) > > Hmm, ... > > > --- a/xen/include/public/arch-x86/cpuid.h > > +++

Re: [PATCH v2] xen/x86: public: add TSC defines for cpuid leaf 4

2023-01-26 Thread Jan Beulich
On 25.01.2023 19:45, Krister Johansen wrote: > --- a/xen/include/public/arch-x86/cpuid.h > +++ b/xen/include/public/arch-x86/cpuid.h > @@ -72,6 +72,14 @@ > * Sub-leaf 2: EAX: host tsc frequency in kHz > */ > > +#define XEN_CPUID_TSC_EMULATED (1u << 0) > +#define

Re: [PATCH v2] xen/x86: public: add TSC defines for cpuid leaf 4

2023-01-26 Thread Jan Beulich
On 25.01.2023 19:45, Krister Johansen wrote: > v2: > - Fix whitespace between comment and #defines (feedback from Jan Beulich) Hmm, ... > --- a/xen/include/public/arch-x86/cpuid.h > +++ b/xen/include/public/arch-x86/cpuid.h > @@ -72,6 +72,14 @@ > * Sub-leaf 2: EAX: host tsc frequency in kHz

[PATCH v2] xen/x86: public: add TSC defines for cpuid leaf 4

2023-01-25 Thread Krister Johansen
Cpuid leaf 4 contains information about how the state of the tsc, its mode, and some additional information. A commit that is queued for linux would like to use this to determine whether the tsc mode has been set to 'no emulation' in order to make some decisions about which clocksource is more

[PATCH v2] xen/x86: public: add TSC defines for cpuid leaf 4

2023-01-25 Thread Krister Johansen
Cpuid leaf 4 contains information about how the state of the tsc, its mode, and some additional information. A commit that is queued for linux would like to use this to determine whether the tsc mode has been set to 'no emulation' in order to make some decisions about which clocksource is more