mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

These functions are used when the guest wants to grant the hypervisor access to certain pages. Signed-off-by: Ram Pai <linuxram@us.ibm.com> Signed-off-by: Thiago Jung Bauermann <bauerman@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20190820021326.6884-6-bauerman@linux.ibm.com
32 lines
707 B
C
32 lines
707 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Ultravisor API.
|
|
*
|
|
* Copyright 2019, IBM Corporation.
|
|
*
|
|
*/
|
|
#ifndef _ASM_POWERPC_ULTRAVISOR_API_H
|
|
#define _ASM_POWERPC_ULTRAVISOR_API_H
|
|
|
|
#include <asm/hvcall.h>
|
|
|
|
/* Return codes */
|
|
#define U_BUSY H_BUSY
|
|
#define U_FUNCTION H_FUNCTION
|
|
#define U_NOT_AVAILABLE H_NOT_AVAILABLE
|
|
#define U_P2 H_P2
|
|
#define U_P3 H_P3
|
|
#define U_P4 H_P4
|
|
#define U_P5 H_P5
|
|
#define U_PARAMETER H_PARAMETER
|
|
#define U_PERMISSION H_PERMISSION
|
|
#define U_SUCCESS H_SUCCESS
|
|
|
|
/* opcodes */
|
|
#define UV_WRITE_PATE 0xF104
|
|
#define UV_RETURN 0xF11C
|
|
#define UV_ESM 0xF110
|
|
#define UV_SHARE_PAGE 0xF130
|
|
#define UV_UNSHARE_PAGE 0xF134
|
|
|
|
#endif /* _ASM_POWERPC_ULTRAVISOR_API_H */
|