Re: [PATCH v2 06/15] KVM: arm64: Tear down unlinked stage-2 subtree after break-before-make

2022-10-28 Thread Ricardo Koller
On Fri, Oct 28, 2022 at 11:43:33AM -0700, Ricardo Koller wrote: > On Fri, Oct 28, 2022 at 11:41:57AM -0700, Ricardo Koller wrote: > > On Fri, Oct 07, 2022 at 11:28:09PM +, Oliver Upton wrote: > > > The break-before-make sequence is a bit annoying as it opens a window > > > wherein memory is

Re: [PATCH v2 06/15] KVM: arm64: Tear down unlinked stage-2 subtree after break-before-make

2022-10-28 Thread Ricardo Koller
On Fri, Oct 28, 2022 at 11:41:57AM -0700, Ricardo Koller wrote: > On Fri, Oct 07, 2022 at 11:28:09PM +, Oliver Upton wrote: > > The break-before-make sequence is a bit annoying as it opens a window > > wherein memory is unmapped from the guest. KVM should replace the PTE > > as quickly as

Re: [PATCH v2 06/15] KVM: arm64: Tear down unlinked stage-2 subtree after break-before-make

2022-10-28 Thread Ricardo Koller
On Fri, Oct 07, 2022 at 11:28:09PM +, Oliver Upton wrote: > The break-before-make sequence is a bit annoying as it opens a window > wherein memory is unmapped from the guest. KVM should replace the PTE > as quickly as possible and avoid unnecessary work in between. > > Presently, the stage-2

[PATCH v2 06/15] KVM: arm64: Tear down unlinked stage-2 subtree after break-before-make

2022-10-07 Thread Oliver Upton
The break-before-make sequence is a bit annoying as it opens a window wherein memory is unmapped from the guest. KVM should replace the PTE as quickly as possible and avoid unnecessary work in between. Presently, the stage-2 map walker tears down a removed table before installing a block mapping