Lines Matching defs:kvm_seg
710 setKvmSegmentReg(ThreadContext *tc, struct kvm_segment &kvm_seg,
715 kvm_seg.base = tc->readMiscRegNoEffect(MISCREG_SEG_BASE(index));
716 kvm_seg.limit = tc->readMiscRegNoEffect(MISCREG_SEG_LIMIT(index));
717 kvm_seg.selector = tc->readMiscRegNoEffect(MISCREG_SEG_SEL(index));
718 kvm_seg.type = attr.type;
719 kvm_seg.present = attr.present;
720 kvm_seg.dpl = attr.dpl;
721 kvm_seg.db = attr.defaultSize;
722 kvm_seg.s = attr.system;
723 kvm_seg.l = attr.longMode;
724 kvm_seg.g = attr.granularity;
725 kvm_seg.avl = attr.avl;
731 kvm_seg.unusable = 0;
990 setContextSegment(ThreadContext *tc, const struct kvm_segment &kvm_seg,
995 attr.type = kvm_seg.type;
996 attr.present = kvm_seg.present;
997 attr.dpl = kvm_seg.dpl;
998 attr.defaultSize = kvm_seg.db;
999 attr.system = kvm_seg.s;
1000 attr.longMode = kvm_seg.l;
1001 attr.granularity = kvm_seg.g;
1002 attr.avl = kvm_seg.avl;
1003 attr.unusable = kvm_seg.unusable;
1008 tc->setMiscReg(MISCREG_SEG_BASE(index), kvm_seg.base);
1009 tc->setMiscReg(MISCREG_SEG_LIMIT(index), kvm_seg.limit);
1010 tc->setMiscReg(MISCREG_SEG_SEL(index), kvm_seg.selector);