Commit f17f3a4
committed
[hyperlight_guest_bin] Save/restore x87 & SSE regs on context switch
We unfortunately don't have a good way of making sure that code run in
exception contexts doesn't use floating point and SSE
instructions. This commit simply always saves and restores the
relevant registers as a workaround. We should at some point look into
the alternative of ensuring that simd instructions aren't used in code
reachable from an exception handler, and see if that actually improves
performance.
Signed-off-by: Lucy Menon <[email protected]>1 parent b46da12 commit f17f3a4
1 file changed
+17
-2
lines changedLines changed: 17 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
| 71 | + | |
71 | 72 | | |
72 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
73 | 83 | | |
74 | 84 | | |
75 | 85 | | |
| |||
83 | 93 | | |
84 | 94 | | |
85 | 95 | | |
86 | | - | |
| 96 | + | |
87 | 97 | | |
88 | 98 | | |
89 | 99 | | |
90 | 100 | | |
91 | 101 | | |
92 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
93 | 108 | | |
94 | 109 | | |
95 | 110 | | |
| |||
0 commit comments