xen/domain: fix late hwdom feature

Fix get_initial_domain_id() which returns hardware_domid and thus breaks
late hwdom feature [1].

[1] https://lore.kernel.org/xen-devel/a4c860d7-1fa0-43f4-8ae1-af59b7c6506f@xen.org/

Fixes: f147ccf2b3 ("xen/consoled: clean up console handling for PV shim")
Reported-by: Julien Grall <julien@xen.org>
Signed-off-by: Denis Mukhin <dmukhin@ford.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
Denis Mukhin authored and Jan Beulich committed 2025-06-12 14:45:41 +02:00
1 parent fc24430d97
commit 8dd642a479
1 file changed
+1 -1
+1 -1
View File
@@ -2404,7 +2404,7 @@ domid_t get_initial_domain_id(void)
if ( pv_shim )
return pv_shim_get_initial_domain_id();
#endif
return hardware_domid;
return 0;
}
void freeze_domains(void)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.