summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBin Lu <bin.lu@arm.com>2020-06-09 05:28:09 -0400
committerBin Lu <bin.lu@arm.com>2020-06-09 05:42:41 -0400
commitb792cc1ca9c89cafdf8dafc23ef8956eb4f72b46 (patch)
tree09e1da29baf87d127099bd86ea4478ada8359e0c
parent4e96b94915633cc06bf04bd680f4eeba6a764dc9 (diff)
minor change in kvm module for Arm64
Signed-off-by: Bin Lu <bin.lu@arm.com>
-rw-r--r--pkg/sentry/platform/kvm/machine_arm64.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/platform/kvm/machine_arm64.go b/pkg/sentry/platform/kvm/machine_arm64.go
index 750751aa3..f3bf973de 100644
--- a/pkg/sentry/platform/kvm/machine_arm64.go
+++ b/pkg/sentry/platform/kvm/machine_arm64.go
@@ -106,7 +106,7 @@ func (m *machine) dropPageTables(pt *pagetables.PageTables) {
defer m.mu.Unlock()
// Clear from all PCIDs.
- for _, c := range m.vCPUs {
+ for _, c := range m.vCPUsByID {
if c.PCIDs != nil {
c.PCIDs.Drop(pt)
}