Fix Windows build with --no-default-features#712
Fix Windows build with --no-default-features#712danbugs merged 3 commits intohyperlight-dev:mainfrom
--no-default-features#712Conversation
There was a problem hiding this comment.
Looks good! I think we should strive to set the same registers on all hypervisors, so we don't rely on any inherent defaults of a particular hv. Thoughts?
c8511cc to
fe110fb
Compare
Probably a good idea—we should also avoid relying on This is exactly the setup we needed w/o Might be a good work item for #469? |
2c28574 to
85e2184
Compare
97b3e43
Signed-off-by: danbugs <danilochiarlone@gmail.com>
+ on Linux w/o init-paging but some driver Signed-off-by: danbugs <danilochiarlone@gmail.com>
…ture Signed-off-by: danbugs <danilochiarlone@gmail.com>
97b3e43 to
27c01ea
Compare
Fixes #685 and updates CI to ensure Windows builds successfully without default features.
Btw, to validate this fix, I tested running Nanvix (which uses
--no-default-features) on Windows as a guest. This revealed that additional register setup was needed inhyperv_windows.rs:Limitparameter for CS to0xFFFF(required when paging isn't initialized)These changes ensure Windows Hyper-V properly initializes guest VMs that don't use the init-paging feature. Same idea for Linux Hyper-V too.