mmu.c (c87866ede44ad7da6b296d732221dc34ce1b154d) | mmu.c (cf364e08ea1c5dd217afb658d510aaef7d0cc6f4) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Copyright (C) 2012 - Virtual Open Systems and Columbia University 4 * Author: Christoffer Dall <c.dall@virtualopensystems.com> 5 */ 6 7#include <linux/mman.h> 8#include <linux/kvm_host.h> --- 471 unchanged lines hidden (view full) --- 480 } 481 482 for_each_possible_cpu(cpu) 483 *per_cpu_ptr(mmu->last_vcpu_ran, cpu) = -1; 484 485 mmu->arch = &kvm->arch; 486 mmu->pgt = pgt; 487 mmu->pgd_phys = __pa(pgt->pgd); | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Copyright (C) 2012 - Virtual Open Systems and Columbia University 4 * Author: Christoffer Dall <c.dall@virtualopensystems.com> 5 */ 6 7#include <linux/mman.h> 8#include <linux/kvm_host.h> --- 471 unchanged lines hidden (view full) --- 480 } 481 482 for_each_possible_cpu(cpu) 483 *per_cpu_ptr(mmu->last_vcpu_ran, cpu) = -1; 484 485 mmu->arch = &kvm->arch; 486 mmu->pgt = pgt; 487 mmu->pgd_phys = __pa(pgt->pgd); |
488 mmu->vmid.vmid_gen = 0; | 488 WRITE_ONCE(mmu->vmid.vmid_gen, 0); |
489 return 0; 490 491out_destroy_pgtable: 492 kvm_pgtable_stage2_destroy(pgt); 493out_free_pgtable: 494 kfree(pgt); 495 return err; 496} --- 1091 unchanged lines hidden --- | 489 return 0; 490 491out_destroy_pgtable: 492 kvm_pgtable_stage2_destroy(pgt); 493out_free_pgtable: 494 kfree(pgt); 495 return err; 496} --- 1091 unchanged lines hidden --- |