Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1433537
| From | Paolo Bonzini <pbonzini@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 3/5] mmu: don't set the present bit unconditionally |
| Date | 2016-06-29 10:20 +0200 |
| Message-ID | <rPiSZ-1Lg-11@gated-at.bofh.it> (permalink) |
| References | <rOSYx-1Xl-7@gated-at.bofh.it> <rOSYx-1Xl-9@gated-at.bofh.it> <rPemm-7iT-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 29/06/2016 05:17, Xiao Guangrong wrote:
>>
>> +++ b/arch/x86/kvm/mmu.c
>> @@ -2516,13 +2516,17 @@ static int set_spte(struct kvm_vcpu *vcpu, u64
>> *sptep,
>> gfn_t gfn, kvm_pfn_t pfn, bool speculative,
>> bool can_unsync, bool host_writable)
>> {
>> - u64 spte;
>> + u64 spte = 0;
>> int ret = 0;
>> + struct kvm_mmu *context = &vcpu->arch.mmu;
>> + bool execonly = !(context->guest_rsvd_check.bad_mt_xwr &
>> + (1ull << VMX_EPT_EXECUTABLE_MASK));
>
> Could we introduce a new field, say execonly, to "struct kvm_mmu"?
> That would make the code be more clearer.
Given how execonly is used, let's add shadow_present_mask instead.
Paolo
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 3/5] mmu: don't set the present bit unconditionally Bandan Das <bsd@redhat.com> - 2016-06-28 06:40 +0200
Re: [PATCH 3/5] mmu: don't set the present bit unconditionally Paolo Bonzini <pbonzini@redhat.com> - 2016-06-28 11:00 +0200
Re: [PATCH 3/5] mmu: don't set the present bit unconditionally Bandan Das <bsd@redhat.com> - 2016-06-28 19:50 +0200
Re: [PATCH 3/5] mmu: don't set the present bit unconditionally Paolo Bonzini <pbonzini@redhat.com> - 2016-06-28 22:30 +0200
Re: [PATCH 3/5] mmu: don't set the present bit unconditionally Wanpeng Li <kernellwp@gmail.com> - 2016-07-05 08:00 +0200
Re: [PATCH 3/5] mmu: don't set the present bit unconditionally Paolo Bonzini <pbonzini@redhat.com> - 2016-07-05 13:00 +0200
Re: [PATCH 3/5] mmu: don't set the present bit unconditionally Xiao Guangrong <guangrong.xiao@linux.intel.com> - 2016-06-29 05:30 +0200
Re: [PATCH 3/5] mmu: don't set the present bit unconditionally Paolo Bonzini <pbonzini@redhat.com> - 2016-06-29 10:20 +0200
Re: [PATCH 3/5] mmu: don't set the present bit unconditionally Xiao Guangrong <guangrong.xiao@linux.intel.com> - 2016-06-30 09:30 +0200
csiph-web