KVM: selftests: Move GDT, IDT, and TSS fields to x86's kvm_vm_arch
Now that kvm_vm_arch exists, move the GDT, IDT, and TSS fields to x86's implementation, as the structures are firmly x86-only. Reviewed-by: Ackerley Tng <ackerleytng@google.com> Link: https://lore.kernel.org/r/20240314232637.2538648-4-seanjc@google.com Signed-off-by: Sean Christopherson <seanjc@google.com>
This commit is contained in:
@@ -93,9 +93,6 @@ struct kvm_vm {
|
||||
bool pgd_created;
|
||||
vm_paddr_t ucall_mmio_addr;
|
||||
vm_paddr_t pgd;
|
||||
vm_vaddr_t gdt;
|
||||
vm_vaddr_t tss;
|
||||
vm_vaddr_t idt;
|
||||
vm_vaddr_t handlers;
|
||||
uint32_t dirty_ring_size;
|
||||
uint64_t gpa_tag_mask;
|
||||
|
||||
@@ -5,11 +5,16 @@
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "kvm_util_types.h"
|
||||
#include "test_util.h"
|
||||
|
||||
extern bool is_forced_emulation_enabled;
|
||||
|
||||
struct kvm_vm_arch {
|
||||
vm_vaddr_t gdt;
|
||||
vm_vaddr_t tss;
|
||||
vm_vaddr_t idt;
|
||||
|
||||
uint64_t c_bit;
|
||||
uint64_t s_bit;
|
||||
int sev_fd;
|
||||
|
||||
Reference in New Issue
Block a user