Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/C/Linux/arch/x86/kvm/vmx/   (Open Source Betriebssystem Version 6.17.9©)  Datei vom 24.10.2025 mit Größe 1 kB image not shown  

Quelle  vmx_onhyperv.c   Sprache: C

 
// SPDX-License-Identifier: GPL-2.0-only

#include "capabilities.h"
#include "vmx_onhyperv.h"

DEFINE_STATIC_KEY_FALSE(__kvm_is_using_evmcs);

/*
 * KVM on Hyper-V always uses the latest known eVMCSv1 revision, the assumption
 * is: in case a feature has corresponding fields in eVMCS described and it was
 * exposed in VMX feature MSRs, KVM is free to use it. Warn if KVM meets a
 * feature which has no corresponding eVMCS field, this likely means that KVM
 * needs to be updated.
 */

#define evmcs_check_vmcs_conf(field, ctrl)     \
 do {         \
  typeof(vmcs_conf->field) unsupported;    \
          \
  unsupported = vmcs_conf->field & ~EVMCS1_SUPPORTED_ ## ctrl; \
  if (unsupported) {      \
   pr_warn_once(#field " unsupported with eVMCS: 0x%llx\n",\
         (u64)unsupported);    \
   vmcs_conf->field &= EVMCS1_SUPPORTED_ ## ctrl;  \
  }        \
 }         \
 while (0)

void evmcs_sanitize_exec_ctrls(struct vmcs_config *vmcs_conf)
{
 evmcs_check_vmcs_conf(cpu_based_exec_ctrl, EXEC_CTRL);
 evmcs_check_vmcs_conf(pin_based_exec_ctrl, PINCTRL);
 evmcs_check_vmcs_conf(cpu_based_2nd_exec_ctrl, 2NDEXEC);
 evmcs_check_vmcs_conf(cpu_based_3rd_exec_ctrl, 3RDEXEC);
 evmcs_check_vmcs_conf(vmentry_ctrl, VMENTRY_CTRL);
 evmcs_check_vmcs_conf(vmexit_ctrl, VMEXIT_CTRL);
}

Messung V0.5
C=99 H=90 G=94

¤ Dauer der Verarbeitung: 0.2 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.