Skip to content

Commit 97b3e43

Browse files
committed
[host/driver/hyperv_linux] fixed mshv support without init-paging feature
Signed-off-by: danbugs <[email protected]>
1 parent 85e2184 commit 97b3e43

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

src/hyperlight_host/src/hypervisor/hyperv_linux.rs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,28 @@ impl HypervLinuxDriver {
479479
cs: SegmentRegister {
480480
base: 0,
481481
selector: 0,
482+
limit: 0xFFFF,
483+
type_: 11,
484+
present: 1,
485+
s: 1,
486+
..Default::default()
487+
},
488+
ds: SegmentRegister {
489+
base: 0,
490+
selector: 0,
491+
limit: 0xFFFF,
492+
type_: 3,
493+
present: 1,
494+
s: 1,
495+
..Default::default()
496+
},
497+
tr: SegmentRegister {
498+
base: 0,
499+
selector: 0,
500+
limit: 0xFFFF,
501+
type_: 11,
502+
present: 1,
503+
s: 0,
482504
..Default::default()
483505
},
484506
..Default::default()

0 commit comments

Comments
 (0)