]> git.saurik.com Git - apple/xnu.git/blame - tests/hvtest_x86_guest.h
xnu-7195.101.1.tar.gz
[apple/xnu.git] / tests / hvtest_x86_guest.h
CommitLineData
f427ee49
A
1#pragma once
2
3#include <os/base.h>
4#include <stdint.h>
5
6extern void save_restore_regs_entry(uint64_t arg) OS_NORETURN;
7extern void save_restore_debug_regs_entry(uint64_t arg) OS_NORETURN;
8extern void simple_real_mode_vcpu_entry(uint64_t arg) OS_NORETURN;
9extern void simple_protected_mode_vcpu_entry(uint64_t arg) OS_NORETURN;
10extern void simple_long_mode_vcpu_entry(uint64_t arg) OS_NORETURN;
11extern void smp_vcpu_entry(uint64_t) OS_NORETURN;
12extern void radar61961809_entry(uint64_t) OS_NORETURN;
13extern void radar61961809_prepare(uint64_t) OS_NORETURN;
14extern void radar61961809_loop64(uint64_t) OS_NORETURN;
15extern void radar60691363_entry(uint64_t) OS_NORETURN;
c3c9b80d
A
16extern void pio_entry(uint64_t) OS_NORETURN;
17extern void pio_entry_basic(uint64_t) OS_NORETURN;
f427ee49
A
18
19#define MSR_IA32_STAR 0xc0000081
20#define MSR_IA32_LSTAR 0xc0000082
21#define MSR_IA32_CSTAR 0xc0000083
22#define MSR_IA32_FMASK 0xc0000084
23#define MSR_IA32_KERNEL_GS_BASE 0xc0000102
24#define MSR_IA32_TSC 0x00000010
25#define MSR_IA32_TSC_AUX 0xc0000103
26
27#define MSR_IA32_SYSENTER_CS 0x00000174
28#define MSR_IA32_SYSENTER_ESP 0x00000175
29#define MSR_IA32_SYSENTER_EIP 0x00000176
30#define MSR_IA32_FS_BASE 0xc0000100
31#define MSR_IA32_GS_BASE 0xc0000101
32
33extern void native_msr_vcpu_entry(uint64_t) OS_NORETURN;