| /freebsd-14-stable/usr.sbin/bhyve/amd64/ |
| HD | task_switch.c | 120 static struct seg_desc 123 struct seg_desc seg_desc; in usd_to_seg_desc() local 125 seg_desc.base = (u_int)USD_GETBASE(usd); in usd_to_seg_desc() 127 seg_desc.limit = (u_int)(USD_GETLIMIT(usd) << 12) | 0xfff; in usd_to_seg_desc() 129 seg_desc.limit = (u_int)USD_GETLIMIT(usd); in usd_to_seg_desc() 130 seg_desc.access = usd->sd_type | usd->sd_dpl << 5 | usd->sd_p << 7; in usd_to_seg_desc() 131 seg_desc.access |= usd->sd_xx << 12; in usd_to_seg_desc() 132 seg_desc.access |= usd->sd_def32 << 14; in usd_to_seg_desc() 133 seg_desc.access |= usd->sd_gran << 15; in usd_to_seg_desc() 135 return (seg_desc); in usd_to_seg_desc() [all …]
|
| HD | inout.c | 158 vis->seg_name, &vis->seg_desc, index, bytes, in emulate_inout()
|
| /freebsd-14-stable/sys/amd64/include/ |
| HD | vmm.h | 153 struct seg_desc; 183 typedef int (*vmi_get_desc_t)(void *vcpui, int num, struct seg_desc *desc); 184 typedef int (*vmi_set_desc_t)(void *vcpui, int num, struct seg_desc *desc); 275 struct seg_desc *ret_desc); 277 struct seg_desc *desc); 520 struct seg_desc { struct 675 struct seg_desc seg_desc; member
|
| HD | vmm_instruction_emul.h | 73 struct seg_desc *desc, uint64_t off, int length, int addrsize, int prot,
|
| HD | vmm_dev.h | 78 struct seg_desc desc;
|
| /freebsd-14-stable/sys/dev/gve/ |
| HD | gve_tx.c | 489 gve_tx_fill_seg_desc(struct gve_tx_seg_desc *seg_desc, in gve_tx_fill_seg_desc() argument 493 seg_desc->type_flags = GVE_TXD_SEG; in gve_tx_fill_seg_desc() 496 seg_desc->type_flags |= GVE_TXSF_IPV6; in gve_tx_fill_seg_desc() 497 seg_desc->l3_offset = l3_off >> 1; in gve_tx_fill_seg_desc() 498 seg_desc->mss = htobe16(tso_mss); in gve_tx_fill_seg_desc() 500 seg_desc->seg_len = htobe16(len); in gve_tx_fill_seg_desc() 501 seg_desc->seg_addr = htobe64(addr); in gve_tx_fill_seg_desc() 607 struct gve_tx_seg_desc *seg_desc; in gve_xmit() local 720 seg_desc = &tx->desc_ring[next_idx].seg; in gve_xmit() 722 gve_tx_fill_seg_desc(seg_desc, is_tso, info->iov[i].iov_len, in gve_xmit()
|
| /freebsd-14-stable/sys/amd64/vmm/amd/ |
| HD | vmcb.c | 381 vmcb_setdesc(struct svm_vcpu *vcpu, int reg, struct seg_desc *desc) in vmcb_setdesc() 431 vmcb_getdesc(struct svm_vcpu *vcpu, int reg, struct seg_desc *desc) in vmcb_getdesc() 507 struct seg_desc desc; in vmcb_snapshot_desc()
|
| HD | vmcb.h | 357 int vmcb_setdesc(struct svm_vcpu *vcpu, int ident, struct seg_desc *desc); 358 int vmcb_getdesc(struct svm_vcpu *vcpu, int ident, struct seg_desc *desc);
|
| HD | svm.c | 132 static int svm_getdesc(void *vcpui, int reg, struct seg_desc *desc); 736 error = svm_getdesc(vcpu, vis->seg_name, &vis->seg_desc); in svm_inout_str_seginfo() 2382 svm_getdesc(void *vcpui, int reg, struct seg_desc *desc) in svm_getdesc() 2388 svm_setdesc(void *vcpui, int reg, struct seg_desc *desc) in svm_setdesc()
|
| /freebsd-14-stable/sys/amd64/vmm/intel/ |
| HD | vmcs.h | 56 struct seg_desc *desc); 58 struct seg_desc *desc);
|
| HD | vmcs.c | 254 vmcs_setdesc(struct vmcs *vmcs, int running, int seg, struct seg_desc *desc) in vmcs_setdesc() 282 vmcs_getdesc(struct vmcs *vmcs, int running, int seg, struct seg_desc *desc) in vmcs_getdesc() 500 struct seg_desc desc; in vmcs_snapshot_desc()
|
| HD | vmx.c | 313 static int vmx_getdesc(void *vcpui, int reg, struct seg_desc *desc); 2059 error = vmx_getdesc(vcpu, vis->seg_name, &vis->seg_desc); in inout_str_seginfo() 3494 vmx_getdesc(void *vcpui, int reg, struct seg_desc *desc) in vmx_getdesc() 3509 vmx_setdesc(void *vcpui, int reg, struct seg_desc *desc) in vmx_setdesc()
|
| /freebsd-14-stable/lib/libvmmapi/ |
| HD | vmmapi.h | 149 int vm_get_seg_desc(struct vcpu *vcpu, int reg, struct seg_desc *seg_desc);
|
| HD | vmmapi.c | 647 vm_get_seg_desc(struct vcpu *vcpu, int reg, struct seg_desc *seg_desc) in vm_get_seg_desc() argument 651 error = vm_get_desc(vcpu, reg, &seg_desc->base, &seg_desc->limit, in vm_get_seg_desc() 652 &seg_desc->access); in vm_get_seg_desc()
|
| /freebsd-14-stable/sys/amd64/vmm/ |
| HD | vmm_instruction_emul.c | 720 struct seg_desc desc; in get_gla() 1534 struct seg_desc ss_desc; in emulate_stack_op() 1897 struct seg_desc *desc, uint64_t offset, int length, int addrsize, in vie_calculate_gla() 2830 struct seg_desc desc; in verify_gla()
|
| HD | vmm.c | 244 DEFINE_VMMOPS_IFUNC(int, getdesc, (void *vcpui, int num, struct seg_desc *desc)) 245 DEFINE_VMMOPS_IFUNC(int, setdesc, (void *vcpui, int num, struct seg_desc *desc)) 1283 vm_get_seg_desc(struct vcpu *vcpu, int reg, struct seg_desc *desc) in vm_get_seg_desc() 1293 vm_set_seg_desc(struct vcpu *vcpu, int reg, struct seg_desc *desc) in vm_set_seg_desc()
|