All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] target/i386: seg_helper fixes for segment, TSS, and EXT behavior
@ 2026-12-04 21:26 Nick Sampanis
  2026-12-04 21:26 ` [PATCH 1/3] target/i386/tcg: Set accessed bit on CS, SS and TSS segment loads Nick Sampanis
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Nick Sampanis @ 2026-12-04 21:26 UTC (permalink / raw)
  To: qemu-devel; +Cc: Paolo Bonzini, Richard Henderson, Nick Sampanis

This series makes three fixes in target/i386/tcg/seg_helper.c where
TCG segment, TSS, and exception error-code behavior diverges from
real hardware. They came up while running hypervisors under TCG when
guest-visible state did not match what hardware produces.

- Patch 1: sets the accessed bit on CS/SS segment loads and
  task-switch segment loads.
- Patch 2: keeps the busy bit set in the hidden TR cache, relaxes TR
  type checks so state from older QEMU versions with type 9 is still
  accepted, and updates check_io().
- Patch 3: sets the EXT error-code bit during event delivery with
  Intel and AMD vendor differences handled.

The changes are logically independent, though patch 3 applies on top
of patches 1 and 2.

Nick Sampanis (3):
  target/i386/tcg: Set accessed bit on CS, SS and TSS segment loads
  target/i386/tcg: Keep busy TSS type in TR hidden state
  target/i386/tcg: Set EXT bit in error codes during event delivery

 target/i386/tcg/seg_helper.c        | 214 +++++++++++++++++-----------
 target/i386/tcg/system/seg_helper.c |   2 +-
 2 files changed, 131 insertions(+), 85 deletions(-)

-- 
2.51.0.windows.2



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-12-04 21:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-04 21:26 [PATCH 0/3] target/i386: seg_helper fixes for segment, TSS, and EXT behavior Nick Sampanis
2026-12-04 21:26 ` [PATCH 1/3] target/i386/tcg: Set accessed bit on CS, SS and TSS segment loads Nick Sampanis
2026-12-04 21:26 ` [PATCH 2/3] target/i386/tcg: Keep busy TSS type in TR hidden state Nick Sampanis
2026-12-04 21:26 ` [PATCH 3/3] target/i386/tcg: Set EXT bit in error codes during event delivery Nick Sampanis

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.