Skip to contentSkip to conversation

db/leaf_8000000a: Add Page modification logging

PATCH In review Nikunj A Dadhania 2 participants 4 messages Aug 11, 2025 – Aug 18, 2025 x86 cpuid database

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 db/leaf_8000000a: Add Page modification logging

Page modification logging(PML) is hardware feature designed to track guest modified memory pages. PML enables the hypervisor to identify which pages in a guest's memory have been changed since the last checkpoint or during live migration.

---
 db/xml/leaf_8000000a.xml | 5 +++++
 1 file changed, 5 insertions(+)
db/xml/leaf_8000000a.xml +5 -0
index 7f73318..433c4b1 100644
@@ -14,6 +14,11 @@
     <ebx>
       <bit0  len="32" id="svm_nasid"               desc="Number of address space identifiers (ASID)" />
     </ebx>
+    <ecx>
+      <bit4  len="1"  id="pml"                     desc="Page modification logging (PML)">
+        <linux        feature="true"               proc="false" />
+      </bit4>
+    </ecx>
     <edx>
       <desc>SVM feature flags</desc>
       <bit0  len="1"  id="nested_pt"               desc="Nested paging">
Signature · 1 line
2.43.0
#1 lore raw

Hi,

Quoted 16 lines · Nikunj A Dadhania

Page modification logging(PML) is hardware feature designed to track guest modified memory pages. PML enables the hypervisor to identify which pages in a guest's memory have been changed since the last checkpoint or during live migration.

---
 db/xml/leaf_8000000a.xml | 5 +++++
 1 file changed, 5 insertions(+)
db/xml/leaf_8000000a.xml +0 -0
index 7f73318..433c4b1 100644

db/xml/leaf_8000000a.xml line 22

Quoted 9 lines
db/xml/leaf_8000000a.xml +5 -0
@@ -14,6 +14,11 @@
     <ebx>
       <bit0  len="32" id="svm_nasid"               desc="Number of address space identifiers (ASID)" />
     </ebx>
+    <ecx>
+      <bit4  len="1"  id="pml"                     desc="Page modification logging (PML)">
+        <linux        feature="true"               proc="false" />
+      </bit4>
+    </ecx>
 

Thanks a lot for the patch.

feature="true" means that the Linux kernel will have an X86_FEATURE_PML flag at some point. I've quickly searched LKML, and I didn't find any draft patches for such a flag.

If that feature flag is not planned, there's no need to send a v2. I'll just set feature="false" before merging to tip.

Thanks!

--
Ahmed S. Darwish
Linutronix GmbH

#2 lore raw
Quoted 31 lines · Ahmed S. Darwish

Hi,

Quoted 16 lines · Nikunj A Dadhania

Page modification logging(PML) is hardware feature designed to track guest modified memory pages. PML enables the hypervisor to identify which pages in a guest's memory have been changed since the last checkpoint or during live migration.

---
 db/xml/leaf_8000000a.xml | 5 +++++
 1 file changed, 5 insertions(+)
db/xml/leaf_8000000a.xml +0 -0
index 7f73318..433c4b1 100644

db/xml/leaf_8000000a.xml line 22

Quoted 9 lines
db/xml/leaf_8000000a.xml +5 -0
@@ -14,6 +14,11 @@
     <ebx>
       <bit0  len="32" id="svm_nasid"               desc="Number of address space identifiers (ASID)" />
     </ebx>
+    <ecx>
+      <bit4  len="1"  id="pml"                     desc="Page modification logging (PML)">
+        <linux        feature="true"               proc="false" />
+      </bit4>
+    </ecx>
 

Thanks a lot for the patch.

Quoted 3 lines

feature="true" means that the Linux kernel will have an X86_FEATURE_PML flag at some point. I've quickly searched LKML, and I didn't find any draft patches for such a flag.

I will be sending a patch on LKML adding X86_FEATURE_PML.

Quoted 3 lines

If that feature flag is not planned, there's no need to send a v2. I'll just set feature="false" before merging to tip.

Regards,
Nikunj