Re: [RFC PATCH v3 10/16] KVM: arm64: Add a new VM device control group for SPE

2021-03-23 Thread Alexandru Elisei
Hi James, Sorry for taking so long to reply to this, been busy with other things, but your comments have been very helpful and they gave me a lot to think about. For the next iteration of the series I've decided to use pin_user_pages with the FOLL_LONGTERM flags, similar to how vfio_iommu_type1

Re: [RFC PATCH v3 10/16] KVM: arm64: Add a new VM device control group for SPE

2020-12-02 Thread Alexandru Elisei
Hi Haibo, On 11/5/20 10:10 AM, Haibo Xu wrote: > On Wed, 28 Oct 2020 at 01:26, Alexandru Elisei > wrote: >> Stage 2 faults triggered by the profiling buffer attempting to write to >> memory are reported by the SPE hardware by asserting a buffer management >> event interrupt. Interrupts are by

Re: [RFC PATCH v3 10/16] KVM: arm64: Add a new VM device control group for SPE

2020-11-19 Thread James Morse
Hi Alex, On 27/10/2020 17:26, Alexandru Elisei wrote: > Stage 2 faults triggered by the profiling buffer attempting to write to > memory are reported by the SPE hardware by asserting a buffer management > event interrupt. Interrupts are by their nature asynchronous, which means > that the guest

Re: [RFC PATCH v3 10/16] KVM: arm64: Add a new VM device control group for SPE

2020-11-05 Thread Haibo Xu
On Wed, 28 Oct 2020 at 01:26, Alexandru Elisei wrote: > > Stage 2 faults triggered by the profiling buffer attempting to write to > memory are reported by the SPE hardware by asserting a buffer management > event interrupt. Interrupts are by their nature asynchronous, which means > that the guest

[RFC PATCH v3 10/16] KVM: arm64: Add a new VM device control group for SPE

2020-10-27 Thread Alexandru Elisei
Stage 2 faults triggered by the profiling buffer attempting to write to memory are reported by the SPE hardware by asserting a buffer management event interrupt. Interrupts are by their nature asynchronous, which means that the guest might have changed its stage 1 translation tables since the