1 // SPDX-License-Identifier: GPL-2.0
3 #include <asm/facility.h>
4 #include <asm/sections.h>
6 int __bootdata_preserved(prot_virt_guest);
8 void uv_query_info(void)
10 struct uv_cb_qui uvcb = {
11 .header.cmd = UVC_CMD_QUI,
12 .header.len = sizeof(uvcb)
15 if (!test_facility(158))
18 /* rc==0x100 means that there is additional data we do not process */
19 if (uv_call(0, (uint64_t)&uvcb) && uvcb.header.rc != 0x100)
22 if (test_bit_inv(BIT_UVC_CMD_SET_SHARED_ACCESS, (unsigned long *)uvcb.inst_calls_list) &&
23 test_bit_inv(BIT_UVC_CMD_REMOVE_SHARED_ACCESS, (unsigned long *)uvcb.inst_calls_list))