Lines Matching refs:guest_mem
176 static void setup_32bit_idt(struct kvm_sregs* sregs, char* host_mem, uintptr_t guest_mem) in setup_32bit_idt() argument
178 sregs->idt.base = guest_mem + ADDR_VAR_IDT; in setup_32bit_idt()
217 gate.limit = guest_mem + ADDR_VAR_USER_CODE2; // entry offset in setup_32bit_idt()
229 static void setup_64bit_idt(struct kvm_sregs* sregs, char* host_mem, uintptr_t guest_mem) in setup_64bit_idt() argument
231 sregs->idt.base = guest_mem + ADDR_VAR_IDT; in setup_64bit_idt()
240 gate.limit = guest_mem + ADDR_VAR_USER_CODE2; // entry offset in setup_64bit_idt()
286 const uintptr_t guest_mem = 0; in syz_kvm_setup_cpu() local
301 memreg.guest_phys_addr = guest_mem + i * page_size; in syz_kvm_setup_cpu()
323 regs.rip = guest_mem + ADDR_TEXT; in syz_kvm_setup_cpu()
326 sregs.gdt.base = guest_mem + ADDR_GDT; in syz_kvm_setup_cpu()
333 seg_ldt.base = guest_mem + ADDR_LDT; in syz_kvm_setup_cpu()
519 setup_32bit_idt(&sregs, host_mem, guest_mem); in syz_kvm_setup_cpu()
522 uint64 pd_addr = guest_mem + ADDR_PD; in syz_kvm_setup_cpu()
556 setup_32bit_idt(&sregs, host_mem, guest_mem); in syz_kvm_setup_cpu()
570 uint64 pd_addr = guest_mem + ADDR_PD; in syz_kvm_setup_cpu()
591 setup_64bit_idt(&sregs, host_mem, guest_mem); in syz_kvm_setup_cpu()
596 uint64 pml4_addr = guest_mem + ADDR_PML4; in syz_kvm_setup_cpu()
598 uint64 pdpt_addr = guest_mem + ADDR_PDP; in syz_kvm_setup_cpu()
600 uint64 pd_addr = guest_mem + ADDR_PD; in syz_kvm_setup_cpu()
701 NONFAILING(*((uint32*)patch) = guest_mem + ADDR_TEXT + ((char*)patch - host_text) + 6); in syz_kvm_setup_cpu()
706 NONFAILING(*((uint16*)patch) = guest_mem + ADDR_TEXT + text_prefix_size); in syz_kvm_setup_cpu()