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

Re: [PATCH 1/3] Additional logging for module loading.



On 19/07/2021 13:25, Martin Harvey wrote:
I would like to have the logging enabled all the time. Whilst the case I 
mentioned is safe mode boot, I would be a liar if I said that that was the only 
way to break the filtering.


Ok.

Acked-by: Paul Durrant <paul@xxxxxxx>

MH.

-----Original Message-----
From: win-pv-devel <win-pv-devel-bounces@xxxxxxxxxxxxxxxxxxxx> On Behalf Of 
Paul Durrant
Sent: 19 July 2021 08:23
To: win-pv-devel@xxxxxxxxxxxxxxxxxxxx
Subject: Re: [PATCH 1/3] Additional logging for module loading.

[CAUTION - EXTERNAL EMAIL] DO NOT reply, click links, or open attachments 
unless you have verified the sender and know the content is safe.

On 15/07/2021 14:15, Martin Harvey wrote:
Recent releases of Windows (10 and 11 in particular) allow online
edition updates which involve a driver migration step, which occurs in
SAFEBOOT mode.

In some rare cases, this step may fail (for a variety of reasons).
This additional logging added to debug such upgrade cases.

Just to be clear here. Is the intention to have this logging enabled all the 
time or only in safe mode? The comment above suggests the latter but there is 
no such guard on the call to Info() below.

    Paul


Signed-Off-By: Martin Harvey <martin.harvey@xxxxxxxxxx>
---
   src/xen/module.c | 5 +++++
   1 file changed, 5 insertions(+)

diff --git a/src/xen/module.c b/src/xen/module.c index
da7f113..1813e3b 100644
--- a/src/xen/module.c
+++ b/src/xen/module.c
@@ -145,6 +145,11 @@ ModuleAdd(
       BOOLEAN             After;
       NTSTATUS            status;
+ Info("%p - %p [%s]\n",
+         Start,
+         Start + Size - 1,
+         Name);
+
       New = __ModuleAllocate(sizeof (MODULE));
status = STATUS_NO_MEMORY;







 


Rackspace

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