Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc64 sun4v: add missing method to set hypervisor...
details: https://anonhg.NetBSD.org/src/rev/8a5c0906514f
branches: trunk
changeset: 378894:8a5c0906514f
user: palle <palle%NetBSD.org@localhost>
date: Tue Apr 27 19:09:56 2021 +0000
description:
sun4v: add missing method to set hypervisor api version + add defintion for the interrupt hypervisor api group (to be used)
diffstat:
sys/arch/sparc64/include/hypervisor.h | 10 ++++++++--
sys/arch/sparc64/sparc64/hvcall.S | 9 ++++++++-
2 files changed, 16 insertions(+), 3 deletions(-)
diffs (47 lines):
diff -r 18ba21f73f38 -r 8a5c0906514f sys/arch/sparc64/include/hypervisor.h
--- a/sys/arch/sparc64/include/hypervisor.h Tue Apr 27 16:25:46 2021 +0000
+++ b/sys/arch/sparc64/include/hypervisor.h Tue Apr 27 19:09:56 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hypervisor.h,v 1.6 2017/02/10 23:26:23 palle Exp $ */
+/* $NetBSD: hypervisor.h,v 1.7 2021/04/27 19:09:56 palle Exp $ */
/* $OpenBSD: hypervisor.h,v 1.14 2011/06/26 17:23:46 kettenis Exp $ */
/*
@@ -36,7 +36,13 @@
#ifndef _LOCORE
int64_t hv_api_get_version(uint64_t api_group,
- uint64_t *major_number, uint64_t *minor_number);
+ uint64_t *major_number,
+ uint64_t *minor_number);
+int64_t hv_api_set_version(uint64_t api_group,
+ uint64_t major_number,
+ uint64_t req_minor_number,
+ uint64_t* actual_minor_number);
+#define HV_API_GROUP_INTERRUPT 0x002
#endif
/*
* Domain services
diff -r 18ba21f73f38 -r 8a5c0906514f sys/arch/sparc64/sparc64/hvcall.S
--- a/sys/arch/sparc64/sparc64/hvcall.S Tue Apr 27 16:25:46 2021 +0000
+++ b/sys/arch/sparc64/sparc64/hvcall.S Tue Apr 27 19:09:56 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hvcall.S,v 1.4 2014/06/08 17:33:24 palle Exp $ */
+/* $NetBSD: hvcall.S,v 1.5 2021/04/27 19:09:56 palle Exp $ */
/* $OpenBSD: hvcall.S,v 1.10 2011/06/25 20:45:00 kettenis Exp $ */
/*
@@ -151,6 +151,13 @@ ENTRY(hv_api_get_version)
retl
stx %o2, [%o4]
+ENTRY(hv_api_set_version)
+ mov %o3, %o4
+ mov API_SET_VERSION, %o5
+ ta ST_CORE_TRAP
+ retl
+ stx %o1, [%o4]
+
ENTRY(hv_mach_desc)
mov %o1, %o2
ldx [%o2], %o1
Home |
Main Index |
Thread Index |
Old Index