]> xenbits.xensource.com Git - pvdrivers/win/xenbus.git/commit
Add XENBUS_SHARED_INFO method to check whether event upcalls are supported
authorPaul Durrant <pdurrant@amazon.com>
Sat, 30 Jan 2021 18:08:34 +0000 (18:08 +0000)
committerPaul Durrant <pdurrant@amazon.com>
Mon, 8 Feb 2021 15:23:54 +0000 (15:23 +0000)
commit58760cc3dd944a4deec3e3a69d00737ab6b3435a
tree20e25805f046551ddc36ff2e5a0c3143193f1b3f
parenta9631142d0be1dd683e5ff4acb744372e0866359
Add XENBUS_SHARED_INFO method to check whether event upcalls are supported

Upcalls can only be supported on a vCPU that has a vcpu_info structure
available to Xen; that is one with a vcpu_id < XEN_LEGACY_MAX_VCPUS (32) or
one that has explicitly registered a vcpu_info. This is determined during
SharedInfoAcquire() but the information needs to be avalable to the code in
evtchn.c. Hence this patch adds a new 'UpcallSupported' method to
XENBUS_SHARED_INFO (consequently bumping the interface version to 3).

Signed-off-by: Paul Durrant <pdurrant@amazon.com>
include/revision.h
include/shared_info_interface.h
src/xenbus/evtchn.c
src/xenbus/shared_info.c