[PATCH 00/12] whpx: i386: Windows 10 and performance fixes

Mohamed Mediouni posted 12 patches 1 week, 5 days ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260323193645.82602-1-mohamed@unpredictable.fr
Maintainers: Roman Bolshakov <rbolshakov@ddn.com>, Phil Dennis-Jordan <phil@philjordan.eu>, Wei Liu <wei.liu@kernel.org>, Pedro Barbuda <pbarbuda@microsoft.com>, Mohamed Mediouni <mohamed@unpredictable.fr>
There is a newer version of this series
target/i386/emulate/x86_emu.h     |   6 +
target/i386/emulate/x86_helpers.c |  84 +++++-----
target/i386/emulate/x86_mmu.c     |  11 +-
target/i386/whpx/whpx-all.c       | 263 +++++++++++++++++++++++++-----
4 files changed, 274 insertions(+), 90 deletions(-)
[PATCH 00/12] whpx: i386: Windows 10 and performance fixes
Posted by Mohamed Mediouni 1 week, 5 days ago
On Windows 10, the paravirtualisation enlightenments aren't available.
And neither is performance monitoring. Using the former as a gate to
operate in a reduced-functionality mode on Windows 10.

And on the performance side, some state is really expensive to fetch
or write with Hyper-V so switch some less-essential state to on demand.

The effect of this is magnified on Windows 10 because Hyper-V enlightenments
are not available there.

Issue number: https://gitlab.com/qemu-project/qemu/-/work_items/3349

Mohamed Mediouni (12):
  whpx: i386: workaround for Windows 10 support
  whpx: i386: enable exceptions VM exit only when needed
  whpx: i386: skip TSC read for MMIO exits
  whpx: i386: skip XCRs read for MMIO exits
  whpx: i386: don't restore segment registers after MMIO handling
  target/i386: emulate: add new callbacks
  whpx: i386: add implementation of new x86_emul_ops
  target/i386: emulate: indirect access to CRs
  whpx: i386: indirect access to CRs
  target/i386: emulate: segmentation rework
  whpx: i386: fetch segments on-demand
  whpx: i386: fast runtime state reads

 target/i386/emulate/x86_emu.h     |   6 +
 target/i386/emulate/x86_helpers.c |  84 +++++-----
 target/i386/emulate/x86_mmu.c     |  11 +-
 target/i386/whpx/whpx-all.c       | 263 +++++++++++++++++++++++++-----
 4 files changed, 274 insertions(+), 90 deletions(-)

-- 
2.50.1 (Apple Git-155)