On Tue, Jul 01, 2025 at 07:28:25PM +0200, Magnus Kulke wrote:
> Write CPU register state to MSHV vCPUs. Various mapping functions to
> prepare the payload for the HV call have been implemented.
> 
> Signed-off-by: Magnus Kulke <magnusku...@linux.microsoft.com>
> ---
>  include/system/mshv.h       |  15 +++
>  target/i386/mshv/mshv-cpu.c | 239 ++++++++++++++++++++++++++++++++++++
>  2 files changed, 254 insertions(+)
> 
> diff --git a/include/system/mshv.h b/include/system/mshv.h
> index 7d0fed3c42..40510d5f80 100644
> --- a/include/system/mshv.h
> +++ b/include/system/mshv.h
> @@ -79,6 +79,20 @@ typedef struct MshvMsiControl {
>  #define mshv_msi_via_irqfd_enabled() mshv_enabled()
>  
>  /* cpu */
> +typedef struct MshvFPU {
> +  uint8_t fpr[8][16];
> +  uint16_t fcw;
> +  uint16_t fsw;
> +  uint8_t ftwx;
> +  uint8_t pad1;
> +  uint16_t last_opcode;
> +  uint64_t last_ip;
> +  uint64_t last_dp;
> +  uint8_t xmm[16][16];
> +  uint32_t mxcsr;
> +  uint32_t pad2;

Not enough spaces here.

> +} MshvFPU;
> +

Wei

Reply via email to