Re: [Question-kvm] Can hva_to_pfn_fast be executed in interrupt context?

2019-08-20 Thread Bharath Vedartham
On Thu, Aug 15, 2019 at 08:26:43PM +0200, Paolo Bonzini wrote: > Oh, I see. Sorry I didn't understand the question. In the case of KVM, > there's simply no code that runs in interrupt context and needs to use > virtual addresses. > > In fact, there's no code that runs in interrupt context at all.

Re: [Question-kvm] Can hva_to_pfn_fast be executed in interrupt context?

2019-08-15 Thread Bharath Vedartham
On Tue, Aug 13, 2019 at 10:17:09PM +0200, Paolo Bonzini wrote: > On 13/08/19 21:14, Bharath Vedartham wrote: > > Hi all, > > > > I was looking at the function hva_to_pfn_fast(in virt/kvm/kvm_main) which > > is > > executed in an atomic context(even in non-atomic context, since > >

Re: [Question-kvm] Can hva_to_pfn_fast be executed in interrupt context?

2019-08-13 Thread Paolo Bonzini
On 13/08/19 21:14, Bharath Vedartham wrote: > Hi all, > > I was looking at the function hva_to_pfn_fast(in virt/kvm/kvm_main) which is > executed in an atomic context(even in non-atomic context, since > hva_to_pfn_fast is much faster than hva_to_pfn_slow). > > My question is can this be

[Question-kvm] Can hva_to_pfn_fast be executed in interrupt context?

2019-08-13 Thread Bharath Vedartham
Hi all, I was looking at the function hva_to_pfn_fast(in virt/kvm/kvm_main) which is executed in an atomic context(even in non-atomic context, since hva_to_pfn_fast is much faster than hva_to_pfn_slow). My question is can this be executed in an interrupt context? The motivation for this