Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Linux/tools/testing/selftests/kvm/lib/riscv/   (Linux Kernel Version 6.17.9©)  Datei vom 24.10.2025 mit Größe 757 B image not shown  

Quelle  ucall.c

  Sprache: C
 

// SPDX-License-Identifier: GPL-2.0
/*
 * ucall support. A ucall is a "hypercall to userspace".
 *
 * Copyright (C) 2021 Western Digital Corporation or its affiliates.
 */


#include <linux/kvm.h>

#include "kvm_util.h"
#include "processor.h"
#include "sbi.h"

void *ucall_arch_get_ucall(struct kvm_vcpu *vcpu)
{
 struct kvm_run *run = vcpu->run;

 if (run->exit_reason == KVM_EXIT_RISCV_SBI &&
     run->riscv_sbi.extension_id == KVM_RISCV_SELFTESTS_SBI_EXT) {
  switch (run->riscv_sbi.function_id) {
  case KVM_RISCV_SELFTESTS_SBI_UCALL:
   return (void *)run->riscv_sbi.args[0];
  case KVM_RISCV_SELFTESTS_SBI_UNEXP:
   vcpu_dump(stderr, vcpu, 2);
   TEST_ASSERT(0"Unexpected trap taken by guest");
   break;
  default:
   break;
  }
 }
 return NULL;
}

Messung V0.5 in Prozent
C=97 H=92 G=94

¤ Dauer der Verarbeitung: 0.0 Sekunden  (vorverarbeitet am  2026-06-07) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

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.