5e0d65909c
kvm_arch_get_default_type() returns the default KVM type. This hook is particularly useful to derive a KVM type that is valid for "none" machine model, which is used by libvirt to probe the availability of KVM. For MIPS, the existing mips_kvm_type() is reused. This function ensures the availability of VZ which is mandatory to use KVM on the current QEMU. Cc: qemu-stable@nongnu.org Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com> Message-id: 20230727073134.134102-2-akihiko.odaki@daynix.com Reviewed-by: Peter Maydell <peter.maydell@linaro.org> [PMM: added doc comment for new function] Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
29 lines
701 B
C
29 lines
701 B
C
/*
|
|
* This file is subject to the terms and conditions of the GNU General Public
|
|
* License. See the file "COPYING" in the main directory of this archive
|
|
* for more details.
|
|
*
|
|
* KVM/MIPS: MIPS specific KVM APIs
|
|
*
|
|
* Copyright (C) 2012-2014 Imagination Technologies Ltd.
|
|
* Authors: Sanjay Lal <sanjayl@kymasys.com>
|
|
*/
|
|
|
|
#ifndef KVM_MIPS_H
|
|
#define KVM_MIPS_H
|
|
|
|
#include "cpu.h"
|
|
|
|
/**
|
|
* kvm_mips_reset_vcpu:
|
|
* @cpu: MIPSCPU
|
|
*
|
|
* Called at reset time to set kernel registers to their initial values.
|
|
*/
|
|
void kvm_mips_reset_vcpu(MIPSCPU *cpu);
|
|
|
|
int kvm_mips_set_interrupt(MIPSCPU *cpu, int irq, int level);
|
|
int kvm_mips_set_ipi_interrupt(MIPSCPU *cpu, int irq, int level);
|
|
|
|
#endif /* KVM_MIPS_H */
|