Lines Matching refs:bytes
660 exit_info_1 = (ctxt->insn.opcode.bytes[1] == 0x30) ? 1 : 0; in vc_handle_msr()
858 unsigned int bytes, bool read) in vc_do_mmio() argument
882 exit_info_2 = bytes; in vc_do_mmio()
893 unsigned int bytes = 0; in vc_handle_mmio_twobyte_ops() local
898 switch (insn->opcode.bytes[1]) { in vc_handle_mmio_twobyte_ops()
901 bytes = 1; in vc_handle_mmio_twobyte_ops()
904 if (!bytes) in vc_handle_mmio_twobyte_ops()
905 bytes = 2; in vc_handle_mmio_twobyte_ops()
907 ret = vc_do_mmio(ghcb, ctxt, bytes, true); in vc_handle_mmio_twobyte_ops()
918 memcpy(reg_data, ghcb->shared_buffer, bytes); in vc_handle_mmio_twobyte_ops()
923 bytes = 1; in vc_handle_mmio_twobyte_ops()
926 if (!bytes) in vc_handle_mmio_twobyte_ops()
927 bytes = 2; in vc_handle_mmio_twobyte_ops()
929 ret = vc_do_mmio(ghcb, ctxt, bytes, true); in vc_handle_mmio_twobyte_ops()
938 if (bytes == 1) { in vc_handle_mmio_twobyte_ops()
949 memcpy(reg_data, ghcb->shared_buffer, bytes); in vc_handle_mmio_twobyte_ops()
979 unsigned int bytes) in vc_handle_mmio_movs() argument
1000 ret = vc_read_mem(ctxt, src, buffer, bytes); in vc_handle_mmio_movs()
1004 ret = vc_write_mem(ctxt, dst, buffer, bytes); in vc_handle_mmio_movs()
1009 off = -bytes; in vc_handle_mmio_movs()
1011 off = bytes; in vc_handle_mmio_movs()
1030 unsigned int bytes = 0; in vc_handle_mmio() local
1037 switch (insn->opcode.bytes[0]) { in vc_handle_mmio()
1040 bytes = 1; in vc_handle_mmio()
1043 if (!bytes) in vc_handle_mmio()
1044 bytes = insn->opnd_bytes; in vc_handle_mmio()
1050 memcpy(ghcb->shared_buffer, reg_data, bytes); in vc_handle_mmio()
1052 ret = vc_do_mmio(ghcb, ctxt, bytes, false); in vc_handle_mmio()
1056 bytes = 1; in vc_handle_mmio()
1059 if (!bytes) in vc_handle_mmio()
1060 bytes = insn->opnd_bytes; in vc_handle_mmio()
1062 memcpy(ghcb->shared_buffer, insn->immediate1.bytes, bytes); in vc_handle_mmio()
1064 ret = vc_do_mmio(ghcb, ctxt, bytes, false); in vc_handle_mmio()
1069 bytes = 1; in vc_handle_mmio()
1072 if (!bytes) in vc_handle_mmio()
1073 bytes = insn->opnd_bytes; in vc_handle_mmio()
1075 ret = vc_do_mmio(ghcb, ctxt, bytes, true); in vc_handle_mmio()
1084 if (bytes == 4) in vc_handle_mmio()
1087 memcpy(reg_data, ghcb->shared_buffer, bytes); in vc_handle_mmio()
1092 bytes = 1; in vc_handle_mmio()
1095 if (!bytes) in vc_handle_mmio()
1096 bytes = insn->opnd_bytes; in vc_handle_mmio()
1098 ret = vc_handle_mmio_movs(ctxt, bytes); in vc_handle_mmio()