I am trying to create a shielded VM on an NVMe drive which is claimed by my custom NVMe driver. Upon debugging, I found that shielded VM creation is failing due to DMA data transfer error.
The "AlignmentMask" member of PORT_CONFIGURATION_INFORMATION in my driver is (0x1) WORD aligned. When I changed it to (0x7)QUAD aligned, there is no data transfer error and shielded VM creation is successful. I have a couple of queries.
1) How "AlignmentMask" is affecting the data transfer/creation of shielded VM?
2) In normal IOs using IOmeter, no data transfer errors are observed. Why this "AlignmentMask" is affecting the data transfer only in creation of shielded VM?
It looks like you're new here. If you want to get involved, click one of these buttons!
|Upcoming OSR Seminars|
|Writing WDF Drivers||21 Oct 2019||OSR Seminar Space & ONLINE|
|Internals & Software Drivers||18 Nov 2019||Dulles, VA|
|Kernel Debugging||30 Mar 2020||OSR Seminar Space|
|Developing Minifilters||27 Apr 2020||OSR Seminar Space & ONLINE|