From: Nick Sampanis <nicksampanis@gmail.com>
To: qemu-devel@nongnu.org
Cc: Paolo Bonzini <pbonzini@redhat.com>,
Richard Henderson <richard.henderson@linaro.org>,
Nick Sampanis <Nicksampanis@gmail.com>
Subject: [PATCH 0/3] target/i386: seg_helper fixes for segment, TSS, and EXT behavior
Date: Fri, 4 Dec 2026 23:26:37 +0200 [thread overview]
Message-ID: <20261204212641.2770-1-Nicksampanis@gmail.com> (raw)
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
next reply other threads:[~2026-12-04 21:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 21:26 Nick Sampanis [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261204212641.2770-1-Nicksampanis@gmail.com \
--to=nicksampanis@gmail.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.