Re: [PATCH v3 2/3] x86/platform: introduce XENPF_get_ucode_version

2023-03-21 Thread Jan Beulich
On 21.03.2023 12:47, Sergey Dyasli wrote: > --- a/xen/arch/x86/platform_hypercall.c > +++ b/xen/arch/x86/platform_hypercall.c > @@ -640,6 +640,36 @@ ret_t do_platform_op( > } > break; > > +case XENPF_get_ucode_version: > +{ > +struct xenpf_ucode_version *ver =

Re: [PATCH v3 2/3] x86/platform: introduce XENPF_get_ucode_version

2023-03-21 Thread Andrew Cooper
On 21/03/2023 11:47 am, Sergey Dyasli wrote: > Currently it's impossible to get CPU's microcode revision after late > loading without looking into Xen logs which is not always convenient. It's not impossible (you can do `modprobe msr; rdmsr 0x8b`), but it is inconvenient for library code. > >

[PATCH v3 2/3] x86/platform: introduce XENPF_get_ucode_version

2023-03-21 Thread Sergey Dyasli
Currently it's impossible to get CPU's microcode revision after late loading without looking into Xen logs which is not always convenient. Add a new platform op in order to get the required data from Xen and provide a wrapper for libxenctrl. Signed-off-by: Sergey Dyasli ---