diff options
| -rw-r--r-- | drivers/kvm/kvm_main.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/kvm/kvm_main.c b/drivers/kvm/kvm_main.c index e7108105c50b..be7694db285d 100644 --- a/drivers/kvm/kvm_main.c +++ b/drivers/kvm/kvm_main.c | |||
| @@ -611,6 +611,13 @@ void fx_init(struct kvm_vcpu *vcpu) | |||
| 611 | } | 611 | } |
| 612 | EXPORT_SYMBOL_GPL(fx_init); | 612 | EXPORT_SYMBOL_GPL(fx_init); |
| 613 | 613 | ||
| 614 | static void do_remove_write_access(struct kvm_vcpu *vcpu, int slot) | ||
| 615 | { | ||
| 616 | spin_lock(&vcpu->kvm->lock); | ||
| 617 | kvm_mmu_slot_remove_write_access(vcpu, slot); | ||
| 618 | spin_unlock(&vcpu->kvm->lock); | ||
| 619 | } | ||
| 620 | |||
| 614 | /* | 621 | /* |
| 615 | * Allocate some memory and give it an address in the guest physical address | 622 | * Allocate some memory and give it an address in the guest physical address |
| 616 | * space. | 623 | * space. |
| @@ -756,13 +763,6 @@ out: | |||
| 756 | return r; | 763 | return r; |
| 757 | } | 764 | } |
| 758 | 765 | ||
| 759 | static void do_remove_write_access(struct kvm_vcpu *vcpu, int slot) | ||
| 760 | { | ||
| 761 | spin_lock(&vcpu->kvm->lock); | ||
| 762 | kvm_mmu_slot_remove_write_access(vcpu, slot); | ||
| 763 | spin_unlock(&vcpu->kvm->lock); | ||
| 764 | } | ||
| 765 | |||
| 766 | /* | 766 | /* |
| 767 | * Get (and clear) the dirty memory log for a memory slot. | 767 | * Get (and clear) the dirty memory log for a memory slot. |
| 768 | */ | 768 | */ |
