@@ -47,6 +47,14 @@ bool uv_query_test_call(unsigned int nr)
return test_bit_inv(nr, uvcb_qui.inst_calls_list);
}
+const struct uv_cb_qui *uv_get_query_data(void)
+{
+ /* Query needs to be called first */
+ assert(uvcb_qui.header.rc == 1 || uvcb_qui.header.rc == 0x100);
+
+ return &uvcb_qui;
+}
+
int uv_setup(void)
{
if (!test_facility(158))
@@ -8,6 +8,7 @@
bool uv_os_is_guest(void);
bool uv_os_is_host(void);
bool uv_query_test_call(unsigned int nr);
+const struct uv_cb_qui *uv_get_query_data(void);
void uv_init(void);
int uv_setup(void);
void uv_create_guest(struct vm *vm);