Robert Hoo 465932db25 x86/cpu: Add new VMX feature, Tertiary VM-Execution control
A new 64-bit control field "tertiary processor-based VM-execution
controls", is defined [1]. It's controlled by bit 17 of the primary
processor-based VM-execution controls.

Different from its brother VM-execution fields, this tertiary VM-
execution controls field is 64 bit. So it occupies 2 vmx_feature_leafs,
TERTIARY_CTLS_LOW and TERTIARY_CTLS_HIGH.

Its companion VMX capability reporting MSR,MSR_IA32_VMX_PROCBASED_CTLS3
(0x492), is also semantically different from its brothers, whose 64 bits
consist of all allow-1, rather than 32-bit allow-0 and 32-bit allow-1 [1][2].
Therefore, its init_vmx_capabilities() is a little different from others.

[1] ISE 6.2 "VMCS Changes"
https://www.intel.com/content/www/us/en/develop/download/intel-architecture-instruction-set-extensions-programming-reference.html

[2] SDM Vol3. Appendix A.3

Reviewed-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Signed-off-by: Robert Hoo <robert.hu@linux.intel.com>
Signed-off-by: Zeng Guang <guang.zeng@intel.com>
Message-Id: <20220419153240.11549-1-guang.zeng@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2022-06-08 04:47:13 -04:00
..
2022-05-23 17:51:12 -07:00
2021-10-20 22:35:04 +02:00
2021-03-18 15:31:53 +01:00
2022-06-04 13:42:53 -07:00
2022-05-11 16:27:10 +02:00
2020-01-23 10:41:20 -08:00
2021-03-18 15:31:53 +01:00
2022-05-23 20:38:39 -07:00
2022-05-26 14:20:14 -07:00
2020-05-07 16:06:20 +02:00
2022-04-12 15:42:59 +02:00
2021-12-11 09:09:47 +01:00
2021-10-28 23:25:26 +02:00
2020-10-28 20:26:25 +01:00
2021-10-05 21:48:30 +02:00
2020-11-26 12:58:56 +01:00
2022-05-23 17:51:12 -07:00
2020-11-06 23:14:58 +01:00
2021-02-24 16:32:23 -08:00
2022-04-07 08:27:52 -07:00
2022-05-25 05:09:23 -04:00
2022-04-14 14:09:43 +02:00
2020-09-16 16:52:28 +02:00
2022-01-16 15:53:00 +02:00
2020-10-14 11:42:04 -07:00
2021-12-11 09:09:45 +01:00
2022-03-15 10:32:36 +01:00
2022-05-27 15:25:10 -07:00
2021-07-01 11:06:03 -07:00
2022-04-14 14:15:54 +02:00
2021-12-11 09:09:49 +01:00
2022-04-14 14:15:54 +02:00
2021-12-11 09:09:45 +01:00
2022-05-24 10:18:23 -07:00
2019-04-10 09:53:31 +02:00
2020-03-21 16:03:25 +01:00
2022-04-07 08:27:52 -07:00
2020-11-17 14:36:13 +01:00
2022-01-30 21:17:00 -05:00
2022-01-30 21:17:00 -05:00
2020-03-23 18:45:14 +01:00
2020-01-14 12:20:58 +01:00