Skip to content

Commit 4ee7550

Browse files
authored
CVM: Set GuestCrashRegsAvailable in cpuid (#1308)
We support these regs on all backends, so no reason not to.
1 parent dbdedce commit 4ee7550

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

openhcl/virt_mshv_vtl/src/cvm_cpuid/snp.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,8 @@ impl CpuidArchInitializer for SnpCpuidInitializer {
421421
.with_xmm_registers_for_fast_hypercall_available(true)
422422
.with_register_pat_available(true)
423423
.with_fast_hypercall_output_available(true)
424-
.with_translate_gva_flags_available(true);
424+
.with_translate_gva_flags_available(true)
425+
.with_guest_crash_regs_available(true);
425426

426427
let enlightenments = hvdef::HvEnlightenmentInformation::new()
427428
.with_deprecate_auto_eoi(true)

openhcl/virt_mshv_vtl/src/cvm_cpuid/tdx.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,8 @@ impl CpuidArchInitializer for TdxCpuidInitializer<'_> {
284284
.with_xmm_registers_for_fast_hypercall_available(true)
285285
.with_register_pat_available(true)
286286
.with_fast_hypercall_output_available(true)
287-
.with_translate_gva_flags_available(true);
287+
.with_translate_gva_flags_available(true)
288+
.with_guest_crash_regs_available(true);
288289

289290
let use_apic_msrs = match self.topology.apic_mode() {
290291
vm_topology::processor::x86::ApicMode::XApic => {

0 commit comments

Comments
 (0)