summaryrefslogtreecommitdiff
path: root/drivers/kvm/segment_descriptor.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/kvm/segment_descriptor.h')
-rw-r--r--drivers/kvm/segment_descriptor.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/kvm/segment_descriptor.h b/drivers/kvm/segment_descriptor.h
new file mode 100644
index 0000000..71fdf45
--- /dev/null
+++ b/drivers/kvm/segment_descriptor.h
@@ -0,0 +1,17 @@
+struct segment_descriptor {
+ u16 limit_low;
+ u16 base_low;
+ u8 base_mid;
+ u8 type : 4;
+ u8 system : 1;
+ u8 dpl : 2;
+ u8 present : 1;
+ u8 limit_high : 4;
+ u8 avl : 1;
+ u8 long_mode : 1;
+ u8 default_op : 1;
+ u8 granularity : 1;
+ u8 base_high;
+} __attribute__((packed));
+
+