Decouple the x86 emulator from the rest of kvm
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest16 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/16 | KVM: x86 emulator: drop vcpu argument from memory read/write callbacksarch/ arch/ arch/ | +75 | 0 replies | |
| 2/16 | KVM: x86 emulator: drop vcpu argument from pio callbacksarch/ arch/ arch/ | +21 | 0 replies | |
| 3/16 | KVM: x86 emulator: drop vcpu argument from segment/gdt/idt callbacksarch/ arch/ arch/ | +90 | 0 replies | |
| 4/16 | KVM: x86 emulator: drop vcpu argument from cr/dr/cpl/msr callbacksarch/ arch/ arch/ | +73 | 0 replies | |
| 5/16 | KVM: x86 emulator: drop vcpu argument from intercept callbackarch/ arch/ arch/ | +4 | 0 replies | |
| 6/16 | KVM: x86 emulator: avoid using ctxt->vcpu in check_perm() callbacksarch/ | +2 | 0 replies | |
| 7/16 | KVM: x86 emulator: add and use new callbacks set_idt(), set_gdt()arch/ arch/ arch/ +1 more | +21 | 0 replies | |
| 8/16 | KVM: x86 emulator: drop use of is_long_mode()arch/ | +12 | 0 replies | |
| 9/16 | KVM: x86 emulator: Replace calls to is_pae() and is_paging with ->get_cr()arch/ | +2 | 0 replies | |
| 10/16 | KVM: x86 emulator: emulate CLTS internallyarch/ arch/ arch/ | +11 | 0 replies | |
| 11/16 | KVM: x86 emulator: make emulate_invlpg() an emulator callbackarch/ arch/ arch/ +1 more | +5 | 0 replies | |
| 12/16 | KVM: x86 emulator: add new ->halt() callbackarch/ arch/ arch/ | +8 | 0 replies | |
| 13/16 | KVM: x86 emulator: add ->fix_hypercall() callbackarch/ arch/ arch/ +1 more | +8 | 0 replies | |
| 14/16 | KVM: x86 emulator: add new ->wbinvd() callbackarch/ arch/ arch/ | +8 | 0 replies | |
| 15/16 | KVM: Avoid using x86_emulate_ctxt.vcpuarch/ | +1 | 0 replies | |
| 16/16 | KVM: x86 emulator: drop x86_emulate_ctxt::vcpuarch/ arch/ | +0 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 00/16] Decouple the x86 emulator from the rest of kvm
This (longer than expected) patchset decouples the x86 emulator from the rest of kvm. All communication is not done via x86_emulate_ctxt fields and callbacks; there is no access to ctxt->vcpu (which is eliminated by the last patch).
Avi Kivity (16):
KVM: x86 emulator: drop vcpu argument from memory read/write
callbacks
KVM: x86 emulator: drop vcpu argument from pio callbacks
KVM: x86 emulator: drop vcpu argument from segment/gdt/idt callbacks
KVM: x86 emulator: drop vcpu argument from cr/dr/cpl/msr callbacks
KVM: x86 emulator: drop vcpu argument from intercept callback
KVM: x86 emulator: avoid using ctxt->vcpu in check_perm() callbacks
KVM: x86 emulator: add and use new callbacks set_idt(), set_gdt()
KVM: x86 emulator: drop use of is_long_mode()
KVM: x86 emulator: Replace calls to is_pae() and is_paging with
->get_cr()
KVM: x86 emulator: emulate CLTS internally
KVM: x86 emulator: make emulate_invlpg() an emulator callback
KVM: x86 emulator: add new ->halt() callback
KVM: x86 emulator: add ->fix_hypercall() callback
KVM: x86 emulator: add new ->wbinvd() callback
KVM: Avoid using x86_emulate_ctxt.vcpu
KVM: x86 emulator: drop x86_emulate_ctxt::vcpu
arch/x86/include/asm/kvm_emulate.h | 90 ++++++----- arch/x86/include/asm/kvm_host.h | 7 - arch/x86/kvm/emulate.c | 321 +++++++++++++++++++----------------- arch/x86/kvm/x86.c | 203 ++++++++++++++--------- 4 files changed, 338 insertions(+), 283 deletions(-)