Lines Matching full:sregs

33 	memcpy(&new, &orig, sizeof(sregs));					\
41 TEST_ASSERT(!memcmp(&new, &orig, sizeof(new)), "KVM modified sregs"); \
77 struct kvm_sregs sregs; in main() local
91 vcpu_sregs_get(vcpu, &sregs); in main()
93 sregs.cr0 = 0; in main()
94 sregs.cr4 |= calc_supported_cr4_feature_bits(); in main()
95 cr4 = sregs.cr4; in main()
97 rc = _vcpu_sregs_set(vcpu, &sregs); in main()
100 vcpu_sregs_get(vcpu, &sregs); in main()
101 TEST_ASSERT(sregs.cr4 == cr4, "sregs.CR4 (0x%llx) != CR4 (0x%lx)", in main()
102 sregs.cr4, cr4); in main()
105 TEST_INVALID_CR_BIT(vcpu, cr4, sregs, X86_CR4_UMIP); in main()
106 TEST_INVALID_CR_BIT(vcpu, cr4, sregs, X86_CR4_LA57); in main()
107 TEST_INVALID_CR_BIT(vcpu, cr4, sregs, X86_CR4_VMXE); in main()
108 TEST_INVALID_CR_BIT(vcpu, cr4, sregs, X86_CR4_SMXE); in main()
109 TEST_INVALID_CR_BIT(vcpu, cr4, sregs, X86_CR4_FSGSBASE); in main()
110 TEST_INVALID_CR_BIT(vcpu, cr4, sregs, X86_CR4_PCIDE); in main()
111 TEST_INVALID_CR_BIT(vcpu, cr4, sregs, X86_CR4_OSXSAVE); in main()
112 TEST_INVALID_CR_BIT(vcpu, cr4, sregs, X86_CR4_SMEP); in main()
113 TEST_INVALID_CR_BIT(vcpu, cr4, sregs, X86_CR4_SMAP); in main()
114 TEST_INVALID_CR_BIT(vcpu, cr4, sregs, X86_CR4_PKE); in main()
117 TEST_INVALID_CR_BIT(vcpu, cr0, sregs, BIT(i)); in main()
120 TEST_INVALID_CR_BIT(vcpu, cr0, sregs, X86_CR0_NW); in main()
121 TEST_INVALID_CR_BIT(vcpu, cr0, sregs, X86_CR0_PG); in main()
128 vcpu_sregs_get(vcpu, &sregs); in main()
129 sregs.apic_base = 1 << 10; in main()
130 rc = _vcpu_sregs_set(vcpu, &sregs); in main()
132 sregs.apic_base); in main()
133 sregs.apic_base = 1 << 11; in main()
134 rc = _vcpu_sregs_set(vcpu, &sregs); in main()
136 sregs.apic_base); in main()