mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
libxc: add missing xc_hypercall_bounce_pre calls
Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov> Acked-by: Ian Campbell <ian.campbell@citrix.com>
This commit is contained in:
1 parent
50daa79c58
commit
2e43e19fb3
1 file changed
+12
@@ -191,6 +191,12 @@ int xc_flask_getbool_byname(xc_interface *xch, char *name, int *curr, int *pend)
|
||||
DECLARE_FLASK_OP;
|
||||
DECLARE_HYPERCALL_BOUNCE(name, strlen(name), XC_HYPERCALL_BUFFER_BOUNCE_IN);
|
||||
|
||||
if ( xc_hypercall_bounce_pre(xch, name) )
|
||||
{
|
||||
PERROR("Could not bounce memory for flask op hypercall");
|
||||
return -1;
|
||||
}
|
||||
|
||||
op.cmd = FLASK_GETBOOL;
|
||||
op.u.boolean.bool_id = -1;
|
||||
op.u.boolean.size = strlen(name);
|
||||
@@ -217,6 +223,12 @@ int xc_flask_setbool(xc_interface *xch, char *name, int value, int commit)
|
||||
DECLARE_FLASK_OP;
|
||||
DECLARE_HYPERCALL_BOUNCE(name, strlen(name), XC_HYPERCALL_BUFFER_BOUNCE_IN);
|
||||
|
||||
if ( xc_hypercall_bounce_pre(xch, name) )
|
||||
{
|
||||
PERROR("Could not bounce memory for flask op hypercall");
|
||||
return -1;
|
||||
}
|
||||
|
||||
op.cmd = FLASK_SETBOOL;
|
||||
op.u.boolean.bool_id = -1;
|
||||
op.u.boolean.new_value = value;
|
||||
|
||||