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>
(cherry picked from commit
1124a9a26f05439a3aa31eaea227285e50dc94c0)
}
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: