diff options
author | Lai Jiangshan <laijs@cn.fujitsu.com> | 2010-11-19 04:03:22 -0500 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-01-12 04:29:46 -0500 |
commit | 9bdbba13b8868815198e4fdbd484769ef76392d9 (patch) | |
tree | 83dbbc37752a9a1e15b68d2b2c045125c52cd188 /arch/x86/kvm/mmu.c | |
parent | b330aa0c7df1ece45f45566c45ea44f01e379ab0 (diff) |
KVM: MMU: rename 'reset_host_protection' to 'host_writable'
Rename it to fit its sense better
Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/x86/kvm/mmu.c')
-rw-r--r-- | arch/x86/kvm/mmu.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index 29b2ec46bf1e..59104927c582 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c | |||
@@ -1958,7 +1958,7 @@ static int set_spte(struct kvm_vcpu *vcpu, u64 *sptep, | |||
1958 | unsigned pte_access, int user_fault, | 1958 | unsigned pte_access, int user_fault, |
1959 | int write_fault, int dirty, int level, | 1959 | int write_fault, int dirty, int level, |
1960 | gfn_t gfn, pfn_t pfn, bool speculative, | 1960 | gfn_t gfn, pfn_t pfn, bool speculative, |
1961 | bool can_unsync, bool reset_host_protection) | 1961 | bool can_unsync, bool host_writable) |
1962 | { | 1962 | { |
1963 | u64 spte, entry = *sptep; | 1963 | u64 spte, entry = *sptep; |
1964 | int ret = 0; | 1964 | int ret = 0; |
@@ -1985,7 +1985,7 @@ static int set_spte(struct kvm_vcpu *vcpu, u64 *sptep, | |||
1985 | spte |= kvm_x86_ops->get_mt_mask(vcpu, gfn, | 1985 | spte |= kvm_x86_ops->get_mt_mask(vcpu, gfn, |
1986 | kvm_is_mmio_pfn(pfn)); | 1986 | kvm_is_mmio_pfn(pfn)); |
1987 | 1987 | ||
1988 | if (reset_host_protection) | 1988 | if (host_writable) |
1989 | spte |= SPTE_HOST_WRITEABLE; | 1989 | spte |= SPTE_HOST_WRITEABLE; |
1990 | 1990 | ||
1991 | spte |= (u64)pfn << PAGE_SHIFT; | 1991 | spte |= (u64)pfn << PAGE_SHIFT; |
@@ -2048,7 +2048,7 @@ static void mmu_set_spte(struct kvm_vcpu *vcpu, u64 *sptep, | |||
2048 | int user_fault, int write_fault, int dirty, | 2048 | int user_fault, int write_fault, int dirty, |
2049 | int *ptwrite, int level, gfn_t gfn, | 2049 | int *ptwrite, int level, gfn_t gfn, |
2050 | pfn_t pfn, bool speculative, | 2050 | pfn_t pfn, bool speculative, |
2051 | bool reset_host_protection) | 2051 | bool host_writable) |
2052 | { | 2052 | { |
2053 | int was_rmapped = 0; | 2053 | int was_rmapped = 0; |
2054 | int rmap_count; | 2054 | int rmap_count; |
@@ -2083,7 +2083,7 @@ static void mmu_set_spte(struct kvm_vcpu *vcpu, u64 *sptep, | |||
2083 | 2083 | ||
2084 | if (set_spte(vcpu, sptep, pte_access, user_fault, write_fault, | 2084 | if (set_spte(vcpu, sptep, pte_access, user_fault, write_fault, |
2085 | dirty, level, gfn, pfn, speculative, true, | 2085 | dirty, level, gfn, pfn, speculative, true, |
2086 | reset_host_protection)) { | 2086 | host_writable)) { |
2087 | if (write_fault) | 2087 | if (write_fault) |
2088 | *ptwrite = 1; | 2088 | *ptwrite = 1; |
2089 | kvm_mmu_flush_tlb(vcpu); | 2089 | kvm_mmu_flush_tlb(vcpu); |