]> xenbits.xensource.com Git - xen.git/commit
x86/pv: Rename pv.iobmp_limit to iobmp_nr and clarify behaviour
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 29 Oct 2024 15:38:41 +0000 (16:38 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 29 Oct 2024 15:38:41 +0000 (16:38 +0100)
commit313ff5a2d5d24feb21cb98f5329d834e413446c4
tree8460851ba39e3ed60d0abfb217e9636fe778aae5
parent008808ac9523efcbdc514d8ae35b4db07bca16ec
x86/pv: Rename pv.iobmp_limit to iobmp_nr and clarify behaviour

Ever since it's introduction in commit 013351bd7ab3 ("Define new event-channel
and physdev hypercalls") in 2006, the public interface was named nr_ports
while the internal field was called iobmp_limit.

Rename the internal field to iobmp_nr to match the public interface, and
clarify that, when nonzero, Xen will read 2 bytes.

There isn't a perfect parallel with a real TSS, but iobmp_nr being 0 is the
paravirt "no IOPB" case, and it is important that no read occurs in this case.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
master commit: 633ee8b2df963f7e5cb8de1219c1a48bfb4447f6
master date: 2024-10-01 14:58:18 +0100
xen/arch/x86/include/asm/domain.h
xen/arch/x86/physdev.c
xen/arch/x86/pv/emul-priv-op.c
xen/include/public/physdev.h