Re: [PATCH v7 2/3] KVM: selftests: aarch64: Introduce pmu_event_filter_test

2024-05-09 Thread Shaoqin Huang
Hi Oliver, On 5/7/24 22:49, Oliver Upton wrote: Hi, On Tue, May 07, 2024 at 10:45:24AM +0200, Eric Auger wrote: On 4/9/24 05:03, Shaoqin Huang wrote: +#define GICD_BASE_GPA 0x800ULL +#define GICR_BASE_GPA 0x80AULL in v4 Oliver suggested "Shouldn't a standardized layout of the GIC f

Re: [PATCH v7 2/3] KVM: selftests: aarch64: Introduce pmu_event_filter_test

2024-05-09 Thread Shaoqin Huang
Hi Eric, On 5/7/24 16:45, Eric Auger wrote: Hi Shaoqin, On 4/9/24 05:03, Shaoqin Huang wrote: Introduce pmu_event_filter_test for arm64 platforms. The test configures PMUv3 for a vCPU, and sets different pmu event filters for the vCPU, and check if the guest can see those events which user all

Re: [PATCH v7 2/3] KVM: selftests: aarch64: Introduce pmu_event_filter_test

2024-05-07 Thread Oliver Upton
Hi, On Tue, May 07, 2024 at 10:45:24AM +0200, Eric Auger wrote: > On 4/9/24 05:03, Shaoqin Huang wrote: > > +#define GICD_BASE_GPA 0x800ULL > > +#define GICR_BASE_GPA 0x80AULL > in v4 Oliver suggested "Shouldn't a standardized layout of the GIC > frames go with the rest of the GI

Re: [PATCH v7 2/3] KVM: selftests: aarch64: Introduce pmu_event_filter_test

2024-05-07 Thread Eric Auger
Hi Shaoqin, On 4/9/24 05:03, Shaoqin Huang wrote: > Introduce pmu_event_filter_test for arm64 platforms. The test configures > PMUv3 for a vCPU, and sets different pmu event filters for the vCPU, and > check if the guest can see those events which user allow and can't use > those events which use

[PATCH v7 2/3] KVM: selftests: aarch64: Introduce pmu_event_filter_test

2024-04-08 Thread Shaoqin Huang
Introduce pmu_event_filter_test for arm64 platforms. The test configures PMUv3 for a vCPU, and sets different pmu event filters for the vCPU, and check if the guest can see those events which user allow and can't use those events which use deny. This test refactor the create_vpmu_vm() and make it