fxsave_state
const struct fxsave_state *fx = &state->xs_fxsave;
struct fxsave_state legacy;
ent->vfde_size != sizeof (struct fxsave_state)) {
ent->vfde_size != sizeof (struct fxsave_state)) {
fxsave_to_fnsave(const struct fxsave_state *fx, struct fnsave_state *fn)
fpregset_to_fxsave(const fpregset_t *fp, struct fxsave_state *fx)
fxsave_to_fpregset(const struct fxsave_state *fx, fpregset_t *fp)
fpregset32_to_fxsave(const fpregset32_t *fp, struct fxsave_state *fx)
fxsave_to_fpregset32(const struct fxsave_state *fx, fpregset32_t *fp)
fxsave_to_fpregset32((struct fxsave_state *)src, dst);
fpregset32_to_fxsave(src, (struct fxsave_state *)dst);
fnsave_to_fxsave(const struct fnsave_state *fn, struct fxsave_state *fx)
*sizep = sizeof (struct fxsave_state);
struct fxsave_state *fx, *cfx;
sz = sizeof (struct fxsave_state);
struct fxsave_state *fx;
sizeof (struct fxsave_state));
sizeof (struct fxsave_state), FXSAVE_ALIGN,
*lenp = sizeof (struct fxsave_state);
fpu_xsave_to_fxsave(const struct xsave_state *xsave, struct fxsave_state *fx)
bcopy(xsave, fx, offsetof(struct fxsave_state, fx_xmm));
bcopy(&sse_initial, fx, offsetof(struct fxsave_state,
fpu_xsave_to_fxsave(xsave, (struct fxsave_state *)prxsave);
sizeof (struct fxsave_state));
sizeof (struct fxsave_state));
sizeof (struct fxsave_state));
(struct fxsave_state *)fp);
sizeof (struct fxsave_state));
sizeof (struct fxsave_state));
CTASSERT(sizeof (struct fxsave_state) == 512);
CTASSERT((offsetof(struct fxsave_state, fx_xmm[0]) & 0xf) == 0);
const struct fxsave_state sse_initial = {
struct fxsave_state *fx;
uint8_t fxsave_state[sizeof (struct fxsave_state) + XMM_ALIGN];
fx = (void *)(((uintptr_t)(&fxsave_state[0]) +
sizeof (struct fxsave_state));
size = sizeof (struct fxsave_state);
sizeof (struct fxsave_state));
bcopy(&hdr, buf + sizeof (struct fxsave_state), sizeof (hdr));
struct xsave_header *hdr = buf + sizeof (struct fxsave_state);
save_area_size = sizeof (struct fxsave_state);
hma_fpu_get_fxsave_state(const hma_fpu_t *fpu, struct fxsave_state *fx)
const struct fxsave_state *guest;
hma_fpu_set_fxsave_state(hma_fpu_t *fpu, const struct fxsave_state *fx)
struct fxsave_state *gfx;
sizeof (struct fxsave_state));
struct fxsave_state xs_fxsave; /* 0-511 legacy region */
#define MIN_XSAVE_SIZE (sizeof (struct fxsave_state) + \
struct fxsave_state *kfpu_fx;
extern void fxsave_insn(struct fxsave_state *);
extern void fpxsave(struct fxsave_state *);
extern void fpxrestore(struct fxsave_state *);
extern const struct fxsave_state sse_initial;
extern void hma_fpu_get_fxsave_state(const hma_fpu_t *, struct fxsave_state *);
extern int hma_fpu_set_fxsave_state(hma_fpu_t *, const struct fxsave_state *);