diff options
Diffstat (limited to 'arch/x86/kvm/x86.c')
-rw-r--r-- | arch/x86/kvm/x86.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 58a96e6a234c..638248c96999 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
@@ -2497,7 +2497,7 @@ gfn_t unalias_gfn_instantiation(struct kvm *kvm, gfn_t gfn) | |||
2497 | struct kvm_mem_alias *alias; | 2497 | struct kvm_mem_alias *alias; |
2498 | struct kvm_mem_aliases *aliases; | 2498 | struct kvm_mem_aliases *aliases; |
2499 | 2499 | ||
2500 | aliases = rcu_dereference(kvm->arch.aliases); | 2500 | aliases = kvm_aliases(kvm); |
2501 | 2501 | ||
2502 | for (i = 0; i < aliases->naliases; ++i) { | 2502 | for (i = 0; i < aliases->naliases; ++i) { |
2503 | alias = &aliases->aliases[i]; | 2503 | alias = &aliases->aliases[i]; |
@@ -2516,7 +2516,7 @@ gfn_t unalias_gfn(struct kvm *kvm, gfn_t gfn) | |||
2516 | struct kvm_mem_alias *alias; | 2516 | struct kvm_mem_alias *alias; |
2517 | struct kvm_mem_aliases *aliases; | 2517 | struct kvm_mem_aliases *aliases; |
2518 | 2518 | ||
2519 | aliases = rcu_dereference(kvm->arch.aliases); | 2519 | aliases = kvm_aliases(kvm); |
2520 | 2520 | ||
2521 | for (i = 0; i < aliases->naliases; ++i) { | 2521 | for (i = 0; i < aliases->naliases; ++i) { |
2522 | alias = &aliases->aliases[i]; | 2522 | alias = &aliases->aliases[i]; |