Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Home NTDEV
Before Posting...
Please check out the Community Guidelines in the Announcements and Administration Category.

More Info on Driver Writing and Debugging


The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.


Check out The OSR Learning Library at: https://www.osr.com/osr-learning-library/


"AlignmentMask" member in PORT_CONFIGURATION_INFORMATION structure affecting Creation Of Shielded VM

Sony_PappanSony_Pappan Member Posts: 1

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?

Link about shielded VM : https://docs.microsoft.com/en-us/windows-server/security/guarded-fabric-shielded-vm/guarded-fabric-and-shielded-vms

Regards,
Sony

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Upcoming OSR Seminars
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!
Kernel Debugging 30 Mar 2020 OSR Seminar Space
Developing Minifilters 15 Jun 2020 LIVE ONLINE
Writing WDF Drivers 22 June 2020 LIVE ONLINE
Internals & Software Drivers 28 Sept 2020 Dulles, VA