summary refs log tree commit diff stats
path: root/chardev/char-socket.c
diff options
context:
space:
mode:
authorMatt Borgerson <contact@mborgerson.com>2023-07-13 00:29:01 -0700
committerPaolo Bonzini <pbonzini@redhat.com>2023-08-04 11:42:18 +0200
commitb2ea6450d8e1336a33eb958ccc64604bc35a43dd (patch)
tree5c4e49ab60b305c6e9cc8fc8040ecf08b210a970 /chardev/char-socket.c
parentc26d005e62f4fd177dae0cd70c24cb96761edebc (diff)
downloadfocaccia-qemu-b2ea6450d8e1336a33eb958ccc64604bc35a43dd.tar.gz
focaccia-qemu-b2ea6450d8e1336a33eb958ccc64604bc35a43dd.zip
target/i386: Check CR0.TS before enter_mmx
When CR0.TS=1, execution of x87 FPU, MMX, and some SSE instructions will
cause a Device Not Available (DNA) exception (#NM). System software uses
this exception event to lazily context switch FPU state.

Before this patch, enter_mmx helpers may be generated just before #NM
generation, prematurely resetting FPU state before the guest has a
chance to save it.

Signed-off-by: Matt Borgerson <contact@mborgerson.com>
Message-ID: <CADc=-s5F10muEhLs4f3mxqsEPAHWj0XFfOC2sfFMVHrk9fcpMg@mail.gmail.com>
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'chardev/char-socket.c')
0 files changed, 0 insertions, 0 deletions