summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/platform/kvm/kvm_arm64.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-03-06 20:08:07 +0000
committergVisor bot <gvisor-bot@google.com>2020-03-06 20:08:07 +0000
commit57eb9dd84e0153bb1848c0246d86ef23d116d9a2 (patch)
tree5457e3f91468bfb1620094b80a3750e1be7e5d09 /pkg/sentry/platform/kvm/kvm_arm64.go
parent5aabf0d263809fe25081a5fbbf70dd186484ca29 (diff)
parent18d41cf15368c4d091ffdf84da655994eb1a1099 (diff)
Merge release-20200219.0-121-g18d41cf (automated)
Diffstat (limited to 'pkg/sentry/platform/kvm/kvm_arm64.go')
-rwxr-xr-xpkg/sentry/platform/kvm/kvm_arm64.go32
1 files changed, 0 insertions, 32 deletions
diff --git a/pkg/sentry/platform/kvm/kvm_arm64.go b/pkg/sentry/platform/kvm/kvm_arm64.go
index 2319c86d3..79045651e 100755
--- a/pkg/sentry/platform/kvm/kvm_arm64.go
+++ b/pkg/sentry/platform/kvm/kvm_arm64.go
@@ -20,17 +20,6 @@ import (
"syscall"
)
-// userMemoryRegion is a region of physical memory.
-//
-// This mirrors kvm_memory_region.
-type userMemoryRegion struct {
- slot uint32
- flags uint32
- guestPhysAddr uint64
- memorySize uint64
- userspaceAddr uint64
-}
-
type kvmOneReg struct {
id uint64
addr uint64
@@ -53,27 +42,6 @@ type userRegs struct {
fpRegs userFpsimdState
}
-// runData is the run structure. This may be mapped for synchronous register
-// access (although that doesn't appear to be supported by my kernel at least).
-//
-// This mirrors kvm_run.
-type runData struct {
- requestInterruptWindow uint8
- _ [7]uint8
-
- exitReason uint32
- readyForInterruptInjection uint8
- ifFlag uint8
- _ [2]uint8
-
- cr8 uint64
- apicBase uint64
-
- // This is the union data for exits. Interpretation depends entirely on
- // the exitReason above (see vCPU code for more information).
- data [32]uint64
-}
-
// updateGlobalOnce does global initialization. It has to be called only once.
func updateGlobalOnce(fd int) error {
physicalInit()