arch-x86: Propogate the unusable bit to KVM.
The unusable bit is now used by gem5. Pass that bit through to KVM instead of a dummy value 0. Change-Id: I59912b478a3de95684fb0cc65ff5703d201df8cb Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/57050 Maintainer: Gabe Black <gabe.black@gmail.com> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Bobby Bruce <bbruce@ucdavis.edu> Maintainer: Bobby Bruce <bbruce@ucdavis.edu>
This commit is contained in:
@@ -741,12 +741,7 @@ setKvmSegmentReg(ThreadContext *tc, struct kvm_segment &kvm_seg,
|
||||
kvm_seg.l = attr.longMode;
|
||||
kvm_seg.g = attr.granularity;
|
||||
kvm_seg.avl = attr.avl;
|
||||
|
||||
// A segment is normally unusable when the selector is zero. There
|
||||
// is a attr.unusable flag in gem5, but it seems unused. qemu
|
||||
// seems to set this to 0 all the time, so we just do the same and
|
||||
// hope for the best.
|
||||
kvm_seg.unusable = 0;
|
||||
kvm_seg.unusable = attr.unusable;
|
||||
}
|
||||
|
||||
static inline void
|
||||
|
||||
Reference in New Issue
Block a user