Re: [PATCH 2/4] KVM: selftests: Setup ucall after loading program into guest memory

2022-12-08 Thread Sean Christopherson
On Thu, Dec 08, 2022, Ricardo Koller wrote: > On Thu, Dec 08, 2022 at 07:01:57PM +, Sean Christopherson wrote: > > On Thu, Dec 08, 2022, Ricardo Koller wrote: > > > On Thu, Dec 08, 2022 at 12:37:23AM +, Oliver Upton wrote: > > > > On Thu, Dec 08, 2022 at 12:24:20AM +, Sean

Re: [PATCH 2/4] KVM: selftests: Setup ucall after loading program into guest memory

2022-12-08 Thread Ricardo Koller
On Thu, Dec 08, 2022 at 07:01:57PM +, Sean Christopherson wrote: > On Thu, Dec 08, 2022, Ricardo Koller wrote: > > On Thu, Dec 08, 2022 at 12:37:23AM +, Oliver Upton wrote: > > > On Thu, Dec 08, 2022 at 12:24:20AM +, Sean Christopherson wrote: > > > > > Even still, that's just a kludge

Re: [PATCH 2/4] KVM: selftests: Setup ucall after loading program into guest memory

2022-12-08 Thread Sean Christopherson
On Thu, Dec 08, 2022, Ricardo Koller wrote: > On Thu, Dec 08, 2022 at 12:37:23AM +, Oliver Upton wrote: > > On Thu, Dec 08, 2022 at 12:24:20AM +, Sean Christopherson wrote: > > > > Even still, that's just a kludge to make ucalls work. We have other > > > > MMIO devices (GIC distributor,

Re: [PATCH 2/4] KVM: selftests: Setup ucall after loading program into guest memory

2022-12-08 Thread Ricardo Koller
On Thu, Dec 08, 2022 at 12:37:23AM +, Oliver Upton wrote: > On Thu, Dec 08, 2022 at 12:24:20AM +, Sean Christopherson wrote: > > On Thu, Dec 08, 2022, Oliver Upton wrote: > > > On Wed, Dec 07, 2022 at 11:57:27PM +, Sean Christopherson wrote: > > > > > diff --git

Re: [PATCH 2/4] KVM: selftests: Setup ucall after loading program into guest memory

2022-12-07 Thread Oliver Upton
On Thu, Dec 08, 2022 at 12:24:20AM +, Sean Christopherson wrote: > On Thu, Dec 08, 2022, Oliver Upton wrote: > > On Wed, Dec 07, 2022 at 11:57:27PM +, Sean Christopherson wrote: > > > > diff --git a/tools/testing/selftests/kvm/aarch64/page_fault_test.c > > > >

Re: [PATCH 2/4] KVM: selftests: Setup ucall after loading program into guest memory

2022-12-07 Thread Sean Christopherson
On Thu, Dec 08, 2022, Oliver Upton wrote: > On Wed, Dec 07, 2022 at 11:57:27PM +, Sean Christopherson wrote: > > > diff --git a/tools/testing/selftests/kvm/aarch64/page_fault_test.c > > > b/tools/testing/selftests/kvm/aarch64/page_fault_test.c > > > index 92d3a91153b6..95d22cfb7b41 100644 > >

Re: [PATCH 2/4] KVM: selftests: Setup ucall after loading program into guest memory

2022-12-07 Thread Oliver Upton
On Wed, Dec 07, 2022 at 11:57:27PM +, Sean Christopherson wrote: > On Wed, Dec 07, 2022, Oliver Upton wrote: > > The new ucall infrastructure needs to update a couple of guest globals > > to pass through the ucall MMIO addr and pool of ucall structs. A > > precondition of this actually working

Re: [PATCH 2/4] KVM: selftests: Setup ucall after loading program into guest memory

2022-12-07 Thread Sean Christopherson
On Wed, Dec 07, 2022, Oliver Upton wrote: > The new ucall infrastructure needs to update a couple of guest globals > to pass through the ucall MMIO addr and pool of ucall structs. A > precondition of this actually working is to have the program image > already loaded into guest memory. Ouch.