All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Simple test for sysenter instruction
@ 2021-03-15 21:09 Maxim Levitsky
  2021-03-15 21:09 ` [PATCH v2 1/2] x86/msr: run this test with intel vendor id Maxim Levitsky
  2021-03-15 21:09 ` [PATCH v2 2/2] Add a simple test for SYSENTER instruction Maxim Levitsky
  0 siblings, 2 replies; 3+ messages in thread
From: Maxim Levitsky @ 2021-03-15 21:09 UTC (permalink / raw)
  To: kvm; +Cc: Maxim Levitsky

Hi,

This patch series adds a simple test for sysenter instruction running in
comp32 mode, while using Intel vendor ID.

In this setting, KVM emulates this instruction to help with cross-vendor
migration on AMD.

I also added a patch to 'msr' test to run it with Intel's vendor ID, since this
test tests that SYSENTER EIP/ESP msrs are 64 bit wide which is only true on AMD.

KVM used to emulate these msrs to be always 64 bit on AMD, but this soon will
be changed to do the emulation only when guest CPU vendor ID is of Intel.

Best regards,
    Maxim Levitsky

Maxim Levitsky (2):
  x86/msr: run this test with intel vendor id
  Add a simple test for SYSENTER instruction.

 x86/Makefile.x86_64 |  3 ++
 x86/cstart64.S      |  1 +
 x86/sysenter.c      | 91 +++++++++++++++++++++++++++++++++++++++++++++
 x86/unittests.cfg   |  6 +++
 4 files changed, 101 insertions(+)
 create mode 100644 x86/sysenter.c

-- 
2.26.2



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

end of thread, other threads:[~2021-03-15 21:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-15 21:09 [PATCH v2 0/2] Simple test for sysenter instruction Maxim Levitsky
2021-03-15 21:09 ` [PATCH v2 1/2] x86/msr: run this test with intel vendor id Maxim Levitsky
2021-03-15 21:09 ` [PATCH v2 2/2] Add a simple test for SYSENTER instruction Maxim Levitsky

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.