H A D | x86.c | 6074 #define put_smstate(type, buf, offset, val) \ macro 6097 put_smstate(u32, buf, 0x7fa8 + n * 4, seg.selector); process_smi_save_seg_32() 6104 put_smstate(u32, buf, offset + 8, seg.base); process_smi_save_seg_32() 6105 put_smstate(u32, buf, offset + 4, seg.limit); process_smi_save_seg_32() 6106 put_smstate(u32, buf, offset, process_smi_get_segment_flags(&seg)); process_smi_save_seg_32() 6120 put_smstate(u16, buf, offset, seg.selector); process_smi_save_seg_64() 6121 put_smstate(u16, buf, offset + 2, flags); process_smi_save_seg_64() 6122 put_smstate(u32, buf, offset + 4, seg.limit); process_smi_save_seg_64() 6123 put_smstate(u64, buf, offset + 8, seg.base); process_smi_save_seg_64() 6134 put_smstate(u32, buf, 0x7ffc, kvm_read_cr0(vcpu)); process_smi_save_state_32() 6135 put_smstate(u32, buf, 0x7ff8, kvm_read_cr3(vcpu)); process_smi_save_state_32() 6136 put_smstate(u32, buf, 0x7ff4, kvm_get_rflags(vcpu)); process_smi_save_state_32() 6137 put_smstate(u32, buf, 0x7ff0, kvm_rip_read(vcpu)); process_smi_save_state_32() 6140 put_smstate(u32, buf, 0x7fd0 + i * 4, kvm_register_read(vcpu, i)); process_smi_save_state_32() 6143 put_smstate(u32, buf, 0x7fcc, (u32)val); process_smi_save_state_32() 6145 put_smstate(u32, buf, 0x7fc8, (u32)val); process_smi_save_state_32() 6148 put_smstate(u32, buf, 0x7fc4, seg.selector); process_smi_save_state_32() 6149 put_smstate(u32, buf, 0x7f64, seg.base); process_smi_save_state_32() 6150 put_smstate(u32, buf, 0x7f60, seg.limit); process_smi_save_state_32() 6151 put_smstate(u32, buf, 0x7f5c, process_smi_get_segment_flags(&seg)); process_smi_save_state_32() 6154 put_smstate(u32, buf, 0x7fc0, seg.selector); process_smi_save_state_32() 6155 put_smstate(u32, buf, 0x7f80, seg.base); process_smi_save_state_32() 6156 put_smstate(u32, buf, 0x7f7c, seg.limit); process_smi_save_state_32() 6157 put_smstate(u32, buf, 0x7f78, process_smi_get_segment_flags(&seg)); process_smi_save_state_32() 6160 put_smstate(u32, buf, 0x7f74, dt.address); process_smi_save_state_32() 6161 put_smstate(u32, buf, 0x7f70, dt.size); process_smi_save_state_32() 6164 put_smstate(u32, buf, 0x7f58, dt.address); process_smi_save_state_32() 6165 put_smstate(u32, buf, 0x7f54, dt.size); process_smi_save_state_32() 6170 put_smstate(u32, buf, 0x7f14, kvm_read_cr4(vcpu)); process_smi_save_state_32() 6173 put_smstate(u32, buf, 0x7efc, 0x00020000); process_smi_save_state_32() 6174 put_smstate(u32, buf, 0x7ef8, vcpu->arch.smbase); process_smi_save_state_32() 6186 put_smstate(u64, buf, 0x7ff8 - i * 8, kvm_register_read(vcpu, i)); process_smi_save_state_64() 6188 put_smstate(u64, buf, 0x7f78, kvm_rip_read(vcpu)); process_smi_save_state_64() 6189 put_smstate(u32, buf, 0x7f70, kvm_get_rflags(vcpu)); process_smi_save_state_64() 6192 put_smstate(u64, buf, 0x7f68, val); process_smi_save_state_64() 6194 put_smstate(u64, buf, 0x7f60, val); process_smi_save_state_64() 6196 put_smstate(u64, buf, 0x7f58, kvm_read_cr0(vcpu)); process_smi_save_state_64() 6197 put_smstate(u64, buf, 0x7f50, kvm_read_cr3(vcpu)); process_smi_save_state_64() 6198 put_smstate(u64, buf, 0x7f48, kvm_read_cr4(vcpu)); process_smi_save_state_64() 6200 put_smstate(u32, buf, 0x7f00, vcpu->arch.smbase); process_smi_save_state_64() 6203 put_smstate(u32, buf, 0x7efc, 0x00020064); process_smi_save_state_64() 6205 put_smstate(u64, buf, 0x7ed0, vcpu->arch.efer); process_smi_save_state_64() 6208 put_smstate(u16, buf, 0x7e90, seg.selector); process_smi_save_state_64() 6209 put_smstate(u16, buf, 0x7e92, process_smi_get_segment_flags(&seg) >> 8); process_smi_save_state_64() 6210 put_smstate(u32, buf, 0x7e94, seg.limit); process_smi_save_state_64() 6211 put_smstate(u64, buf, 0x7e98, seg.base); process_smi_save_state_64() 6214 put_smstate(u32, buf, 0x7e84, dt.size); process_smi_save_state_64() 6215 put_smstate(u64, buf, 0x7e88, dt.address); process_smi_save_state_64() 6218 put_smstate(u16, buf, 0x7e70, seg.selector); process_smi_save_state_64() 6219 put_smstate(u16, buf, 0x7e72, process_smi_get_segment_flags(&seg) >> 8); process_smi_save_state_64() 6220 put_smstate(u32, buf, 0x7e74, seg.limit); process_smi_save_state_64() 6221 put_smstate(u64, buf, 0x7e78, seg.base); process_smi_save_state_64() 6224 put_smstate(u32, buf, 0x7e64, dt.size); process_smi_save_state_64() 6225 put_smstate(u64, buf, 0x7e68, dt.address); process_smi_save_state_64()
|