We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa2b35c commit 6c6f631Copy full SHA for 6c6f631
src/vmx/vcpu.rs
@@ -770,6 +770,13 @@ impl<H: AxVCpuHal> VmxVcpu<H> {
770
771
self.setup_io_bitmap()?;
772
773
+ if is_guest {
774
+ // Intercept access to PCI config space (0xcf8-0xcff) for guest VMs.
775
+ const PCI_RANGE: core::ops::Range<u32> = 0xcf8..0xcff;
776
+ self.io_bitmap
777
+ .set_intercept_of_range(PCI_RANGE.start, PCI_RANGE.count() as u32, true);
778
+ }
779
+
780
VmcsControl32::EXCEPTION_BITMAP.write(exception_bitmap)?;
781
VmcsControl64::IO_BITMAP_A_ADDR.write(self.io_bitmap.phys_addr().0.as_usize() as _)?;
782
VmcsControl64::IO_BITMAP_B_ADDR.write(self.io_bitmap.phys_addr().1.as_usize() as _)?;
0 commit comments