Commit 3dbd895
Fix exiting on CR0 write for unrestricted guests (#883)
vcpu::set_eptp() didn't disable exiting on writes to CR0. On the first
run (BSP) handlers were set as if there was no support for unrestricted
guests. Default handler for CR0 writes called emulate_ia_32e_mode_switch(),
which doesn't allow for switches between all modes.
Signed-off-by: Krystian Hebel <krystian.hebel@3mdeb.com>1 parent 363814b commit 3dbd895
1 file changed
+18
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
891 | 891 | | |
892 | 892 | | |
893 | 893 | | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
894 | 897 | | |
895 | 898 | | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
896 | 908 | | |
897 | 909 | | |
898 | 910 | | |
899 | 911 | | |
900 | 912 | | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
901 | 916 | | |
902 | 917 | | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
903 | 921 | | |
904 | 922 | | |
905 | 923 | | |
| |||
0 commit comments