36 lines
792 B
C
36 lines
792 B
C
|
// SPDX-License-Identifier: GPL-2.0
|
||
|
/*
|
||
|
* Copyright (C) 2019 Western Digital Corporation or its affiliates.
|
||
|
*
|
||
|
* Authors:
|
||
|
* Anup Patel <anup.patel@wdc.com>
|
||
|
*/
|
||
|
|
||
|
#include <linux/errno.h>
|
||
|
#include <linux/err.h>
|
||
|
#include <linux/kvm_host.h>
|
||
|
|
||
|
/**
|
||
|
* kvm_riscv_vcpu_mmio_return -- Handle MMIO loads after user space emulation
|
||
|
* or in-kernel IO emulation
|
||
|
*
|
||
|
* @vcpu: The VCPU pointer
|
||
|
* @run: The VCPU run struct containing the mmio data
|
||
|
*/
|
||
|
int kvm_riscv_vcpu_mmio_return(struct kvm_vcpu *vcpu, struct kvm_run *run)
|
||
|
{
|
||
|
/* TODO: */
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
/*
|
||
|
* Return > 0 to return to guest, < 0 on error, 0 (and set exit_reason) on
|
||
|
* proper exit to userspace.
|
||
|
*/
|
||
|
int kvm_riscv_vcpu_exit(struct kvm_vcpu *vcpu, struct kvm_run *run,
|
||
|
struct kvm_cpu_trap *trap)
|
||
|
{
|
||
|
/* TODO: */
|
||
|
return 0;
|
||
|
}
|