}
}
- set_xen_guest_handle(sysctl.u.tmem_op.buf, buf);
+ set_xen_guest_handle(sysctl.u.tmem_op.u.buf, buf);
rc = do_sysctl(xch, &sysctl);
}
}
- set_xen_guest_handle(sysctl.u.tmem_op.buf, buf);
+ set_xen_guest_handle(sysctl.u.tmem_op.u.buf, buf);
rc = do_sysctl(xch, &sysctl);
case XEN_SYSCTL_TMEM_OP_RESTORE_BEGIN:
case XEN_SYSCTL_TMEM_OP_SAVE_END:
ret = tmemc_save_subop(op->cli_id, pool_id, cmd,
- guest_handle_cast(op->buf, char), op->arg1);
+ guest_handle_cast(op->u.buf, char), op->arg1);
break;
case XEN_SYSCTL_TMEM_OP_SAVE_GET_NEXT_PAGE:
ret = tmemc_save_get_next_page(op->cli_id, pool_id,
- guest_handle_cast(op->buf, char), op->arg1);
+ guest_handle_cast(op->u.buf, char), op->arg1);
break;
case XEN_SYSCTL_TMEM_OP_SAVE_GET_NEXT_INV:
ret = tmemc_save_get_next_inv(op->cli_id,
- guest_handle_cast(op->buf, char), op->arg1);
+ guest_handle_cast(op->u.buf, char), op->arg1);
break;
case XEN_SYSCTL_TMEM_OP_RESTORE_PUT_PAGE:
ret = tmemc_restore_put_page(op->cli_id, pool_id, oidp, op->arg2,
- guest_handle_cast(op->buf, char), op->arg1);
+ guest_handle_cast(op->u.buf, char), op->arg1);
break;
case XEN_SYSCTL_TMEM_OP_RESTORE_FLUSH_PAGE:
ret = tmemc_restore_flush_page(op->cli_id, pool_id, oidp, op->arg2);
break;
case XEN_SYSCTL_TMEM_OP_LIST:
ret = tmemc_list(op->cli_id,
- guest_handle_cast(op->buf, char), op->arg1, op->arg2);
+ guest_handle_cast(op->u.buf, char), op->arg1, op->arg2);
break;
case XEN_SYSCTL_TMEM_OP_SET_WEIGHT:
case XEN_SYSCTL_TMEM_OP_SET_COMPRESS:
case XEN_SYSCTL_TMEM_OP_SAVE_GET_POOL_NPAGES:
case XEN_SYSCTL_TMEM_OP_SAVE_GET_POOL_UUID:
ret = tmemc_save_subop(op->cli_id, pool_id, cmd,
- guest_handle_cast(op->buf, char), op->arg1);
+ guest_handle_cast(op->u.buf, char), op->arg1);
break;
default:
ret = do_tmem_control(op);
uint32_t arg2; /* IN: If not applicable to command use 0. */
uint32_t pad; /* Padding so structure is the same under 32 and 64. */
xen_tmem_oid_t oid; /* IN: If not applicable to command use 0s. */
- XEN_GUEST_HANDLE_64(char) buf; /* IN/OUT: Buffer to save and restore ops. */
+ union {
+ XEN_GUEST_HANDLE_64(char) buf; /* IN/OUT: Buffer to save and restore ops. */
+ } u;
};
typedef struct xen_sysctl_tmem_op xen_sysctl_tmem_op_t;
DEFINE_XEN_GUEST_HANDLE(xen_sysctl_tmem_op_t);