ACK: [B][SRU][PATCH 1/1] kvm: Add emulation for movups/movupd
Thadeu Lima de Souza Cascardo
cascardo at canonical.com
Tue Aug 31 11:42:11 UTC 2021
On Tue, Aug 31, 2021 at 12:27:42PM +0800, Po-Hsu Lin wrote:
> From: Stefan Fritsch <sf at sfritsch.de>
>
> BugLink: https://bugs.launchpad.net/bugs/1932966
>
> This is very similar to the aligned versions movaps/movapd.
>
> We have seen the corresponding emulation failures with openbsd as guest
> and with Windows 10 with intel HD graphics pass through.
>
> Signed-off-by: Christian Ehrhardt <christian_ehrhardt at genua.de>
> Signed-off-by: Stefan Fritsch <sf at sfritsch.de>
> Reviewed-by: Radim Krčmář <rkrcmar at redhat.com>
> Signed-off-by: Paolo Bonzini <pbonzini at redhat.com>
> (cherry picked from commit 29916968c48691c94be466a0b47cc9adcea9cb8d)
> Signed-off-by: Po-Hsu Lin <po-hsu.lin at canonical.com>
Hey, PHLin.
Nice catch! Thanks!
Acked-by: Thadeu Lima de Souza Cascardo <cascardo at canonical.com>
> ---
> arch/x86/kvm/emulate.c | 8 +++++++-
> 1 file changed, 7 insertions(+), 1 deletion(-)
>
> diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c
> index c679f17..10bd3a8 100644
> --- a/arch/x86/kvm/emulate.c
> +++ b/arch/x86/kvm/emulate.c
> @@ -4497,6 +4497,10 @@ static const struct gprefix pfx_0f_2b = {
> ID(0, &instr_dual_0f_2b), ID(0, &instr_dual_0f_2b), N, N,
> };
>
> +static const struct gprefix pfx_0f_10_0f_11 = {
> + I(Unaligned, em_mov), I(Unaligned, em_mov), N, N,
> +};
> +
> static const struct gprefix pfx_0f_28_0f_29 = {
> I(Aligned, em_mov), I(Aligned, em_mov), N, N,
> };
> @@ -4708,7 +4712,9 @@ static const struct opcode twobyte_table[256] = {
> DI(ImplicitOps | Priv, invd), DI(ImplicitOps | Priv, wbinvd), N, N,
> N, D(ImplicitOps | ModRM | SrcMem | NoAccess), N, N,
> /* 0x10 - 0x1F */
> - N, N, N, N, N, N, N, N,
> + GP(ModRM | DstReg | SrcMem | Mov | Sse, &pfx_0f_10_0f_11),
> + GP(ModRM | DstMem | SrcReg | Mov | Sse, &pfx_0f_10_0f_11),
> + N, N, N, N, N, N,
> D(ImplicitOps | ModRM | SrcMem | NoAccess),
> N, N, N, N, N, N, D(ImplicitOps | ModRM | SrcMem | NoAccess),
> /* 0x20 - 0x2F */
> --
> 2.7.4
>
>
> --
> kernel-team mailing list
> kernel-team at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/kernel-team
More information about the kernel-team
mailing list