Disable SMAP in the shim before bouncing the hypercall, or else L0
will fail to get the hypercall buffer.
Reported-by: Fatih Acar <fatih.acar@gandi.net>
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
}
case GNTTABOP_query_size:
+ /* Disable SMAP so L0 can access the buffer. */
+ stac();
rc = xen_hypercall_grant_table_op(GNTTABOP_query_size, uop.p, count);
+ clac();
break;
default: