Xiaoyao Li
edafba3921
target/i386: Implement mc->kvm_type() to get VM type
...
TDX VM requires VM type KVM_X86_TDX_VM to be passed to
kvm_ioctl(KVM_CREATE_VM). Hence implement mc->kvm_type() for i386
architecture.
If tdx-guest object is specified to confidential-guest-support, like,
qemu -machine ...,confidential-guest-support=tdx0 \
-object tdx-guest,id=tdx0,...
it parses VM type as KVM_X86_TDX_VM. Otherwise, it's KVM_X86_DEFAULT_VM.
Also store the vm_type in MachineState for other code to query what the
VM type is.
Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com >
Acked-by: Gerd Hoffmann <kraxel@redhat.com >
---
Changes in v4:
- fix the build error of kvm_get_vm_type() when --disable-kvm;
2024-07-25 12:03:11 +02:00
..
2023-10-23 14:45:29 -07:00
2023-01-12 17:15:09 +00:00
2023-11-20 15:30:59 +00:00
2024-04-09 21:15:05 +03:00
2023-10-06 10:33:43 +02:00
2023-11-02 13:36:45 +00:00
2023-11-07 13:08:48 +01:00
2020-09-18 14:12:32 -04:00
2023-01-08 01:54:22 -05:00
2024-02-14 21:41:31 +03:00
2023-10-18 10:10:49 +02:00
2023-01-08 01:54:22 -05:00
2022-11-07 14:08:17 -05:00
2023-08-22 17:30:59 +01:00
2023-11-15 12:06:05 +03:00
2023-11-07 13:08:49 +01:00
2024-07-25 12:03:11 +02:00
2023-11-21 12:45:21 +01:00
2023-11-02 12:52:06 +00:00
2023-11-01 07:20:34 +01:00
2021-09-30 13:42:10 +01:00
2020-09-18 14:12:32 -04:00
2023-11-28 14:26:37 +01:00
2023-10-13 10:03:47 +08:00
2023-11-01 07:31:05 +01:00
2023-11-03 20:26:59 +01:00
2023-10-19 23:13:27 +02:00
2023-11-27 15:38:43 +00:00
2023-09-08 13:08:52 +03:00
2022-05-11 16:49:06 +02:00
2023-10-19 14:32:12 +01:00
2022-09-04 07:02:56 +01:00
2023-11-03 09:20:31 +01:00
2023-11-07 03:39:11 -05:00
2023-11-07 15:49:41 -03:00
2024-07-25 11:36:25 +02:00
2021-11-02 15:55:14 +00:00
2023-01-08 01:54:22 -05:00
2023-09-08 13:08:52 +03:00
2024-03-09 21:42:00 +03:00
2022-05-11 16:49:06 +02:00
2024-01-22 18:23:48 +03:00
2023-07-14 11:10:58 +02:00
2023-09-01 11:40:04 +02:00
2022-07-14 16:24:38 +02:00
2021-10-30 18:39:37 +02:00
2023-10-22 05:18:17 -04:00
2021-03-19 15:18:43 +01:00
2023-11-27 15:38:43 +00:00
2023-02-27 22:29:02 +01:00
2023-02-27 09:15:38 +01:00
2023-01-08 01:54:22 -05:00
2023-11-06 13:23:23 +01:00
2024-04-10 20:32:12 +03:00
2023-04-20 10:21:13 +01:00
2023-12-12 11:18:32 +01:00
2024-07-25 11:57:59 +02:00
2023-09-08 13:08:52 +03:00
2024-01-19 13:41:06 +03:00
2020-09-09 09:27:09 -04:00
2023-03-07 12:38:59 -05:00
2022-04-21 17:03:51 +04:00
2023-02-27 22:29:02 +01:00
2022-04-21 11:37:04 +01:00
2020-11-15 17:04:40 +01:00
2023-11-07 13:08:48 +01:00
2020-09-09 09:27:09 -04:00
2023-02-27 13:27:05 +00:00
2023-03-20 12:43:50 +01:00
2020-11-15 17:04:40 +01:00
2022-05-19 16:19:03 +01:00
2021-03-08 17:20:01 +00:00
2023-08-31 19:47:43 +02:00
2023-11-01 16:13:58 +01:00
2023-11-10 18:19:19 +01:00
2021-09-01 11:59:12 +10:00
2022-06-22 09:49:34 +02:00
2020-09-09 09:27:09 -04:00
2020-12-10 12:15:04 -05:00
2020-09-18 14:12:32 -04:00
2022-11-08 11:13:48 +01:00
2020-09-09 09:27:09 -04:00