[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [XENVBD PATCH 1/2] Add RegistryOpenParametersKey


  • To: win-pv-devel@xxxxxxxxxxxxxxxxxxxx
  • From: Paul Durrant <xadimgnik@xxxxxxxxx>
  • Date: Wed, 24 Jul 2024 09:15:09 +0100
  • Delivery-date: Wed, 24 Jul 2024 08:15:15 +0000
  • List-id: Developer list for the Windows PV Drivers subproject <win-pv-devel.lists.xenproject.org>

On 09/07/2024 11:43, Owen Smith wrote:
Server 2025 WHQL tests enables "verifier.exe /onecheck /rc 33 36" on some 
drivers
under test, which will detect a violation if drivers attempt to access absolute
registry paths.
IoOpenDriverRegistryKey will open the parameters key for a driver, but its not
defined for Server 2016. Use MmGetSystemRoutineAddress to dynamically find the
function so that a single binary can be used on Server 2016 and Server 2025.

Signed-off-by: Owen Smith <owen.smith@xxxxxxxxx>
---
  src/xendisk/driver.c   | 19 ++---------
  src/xendisk/registry.c | 72 ++++++++++++++++++++++++++++++++++++++++-
  src/xendisk/registry.h |  9 +++++-
  src/xenvbd/driver.c    | 27 +++-------------
  src/xenvbd/registry.c  | 73 +++++++++++++++++++++++++++++++++++++++++-
  src/xenvbd/registry.h  | 10 +++++-
  6 files changed, 167 insertions(+), 43 deletions(-)


Acked-by: Paul Durrant <paul@xxxxxxx>




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.