xenclient: implement page claims for early low memory warning

This commit is contained in:
Alex Zenla committed 2024-01-20 21:06:28 -08:00
1 parent 001c22fd69
commit 7d9652636f
3 files changed
+26 -1

No files matched your search

+2
View File
@@ -478,6 +478,7 @@ impl ArchBootSetup for X86BootSetup {
}
fn meminit(&mut self, setup: &mut BootSetup, total_pages: u64) -> Result<(), XenClientError> {
setup.call.claim_pages(setup.domid, total_pages)?;
let mut vmemranges: Vec<VmemRange> = Vec::new();
let stub = VmemRange {
start: 0,
@@ -584,6 +585,7 @@ impl ArchBootSetup for X86BootSetup {
}
setup.phys.load_p2m(p2m);
setup.call.claim_pages(setup.domid, 0)?;
Ok(())
}