]> xenbits.xensource.com Git - xen.git/commit
x86/hvm: only register the r/o subpage ops when needed
authorRoger Pau Monne <roger.pau@citrix.com>
Fri, 11 Apr 2025 08:31:22 +0000 (10:31 +0200)
committerRoger Pau Monne <roger.pau@citrix.com>
Tue, 29 Apr 2025 12:49:54 +0000 (14:49 +0200)
commit06fd6818eae5878397e36d542251e1ad17805262
tree15f951d1285a067beb23a78a46d67a70b2d7b054
parent8f36bde2b2a1ded193ce450c13b213ab9443f2ec
x86/hvm: only register the r/o subpage ops when needed

MMIO operation handlers can be expensive to process, hence attempt to
register only those that will be needed by the domain.

Subpage r/o MMIO regions are added exclusively at boot, further limit their
addition to strictly before the initial domain gets created, so by the time
initial domain creation happens Xen knows whether subpage is required or
not.  This allows only registering the MMIO handler when there are
subpage regions to handle.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/hvm.c
xen/arch/x86/include/asm/mm.h
xen/arch/x86/mm.c