mbox series

[kvm-unit-tests,0/2] x86/pmu: Add TSX testcase and fix force_emulation_prefix

Message ID 20221226075412.61167-1-likexu@tencent.com (mailing list archive)
Headers show
Series x86/pmu: Add TSX testcase and fix force_emulation_prefix | expand

Message

Like Xu Dec. 26, 2022, 7:54 a.m. UTC
We have adopted a test-driven development approach for vPMU's features,
and these two fixes below cover the paths for at least two corner use cases.

Like Xu (2):
  x86/pmu: Add Intel Guest Transactional (commited) cycles testcase
  x86/pmu: Wrap the written counter value with gp_counter_width

 x86/pmu.c | 47 ++++++++++++++++++++++++++++++++++++++++++++---
 1 file changed, 44 insertions(+), 3 deletions(-)

Comments

Like Xu Feb. 14, 2023, 6:47 a.m. UTC | #1
CC more KUT maintainers, could anyone pick up these two minor x86 tests ?

On 26/12/2022 3:54 pm, Like Xu wrote:
> We have adopted a test-driven development approach for vPMU's features,
> and these two fixes below cover the paths for at least two corner use cases.
> 
> Like Xu (2):
>    x86/pmu: Add Intel Guest Transactional (commited) cycles testcase
>    x86/pmu: Wrap the written counter value with gp_counter_width
> 
>   x86/pmu.c | 47 ++++++++++++++++++++++++++++++++++++++++++++---
>   1 file changed, 44 insertions(+), 3 deletions(-)
>
Thomas Huth March 23, 2023, 5:04 p.m. UTC | #2
On 14/02/2023 07.47, Like Xu wrote:
> CC more KUT maintainers, could anyone pick up these two minor x86 tests ?

Your patches never made it to my inbox - I guess they got stuck in a mail 
filter on the way ... Paolo, Sean, did you get them?

  Thomas


> On 26/12/2022 3:54 pm, Like Xu wrote:
>> We have adopted a test-driven development approach for vPMU's features,
>> and these two fixes below cover the paths for at least two corner use cases.
>>
>> Like Xu (2):
>>    x86/pmu: Add Intel Guest Transactional (commited) cycles testcase
>>    x86/pmu: Wrap the written counter value with gp_counter_width
>>
>>   x86/pmu.c | 47 ++++++++++++++++++++++++++++++++++++++++++++---
>>   1 file changed, 44 insertions(+), 3 deletions(-)
>>
>
Sean Christopherson March 23, 2023, 5:41 p.m. UTC | #3
On Thu, Mar 23, 2023, Thomas Huth wrote:
> On 14/02/2023 07.47, Like Xu wrote:
> > CC more KUT maintainers, could anyone pick up these two minor x86 tests ?
> 
> Your patches never made it to my inbox - I guess they got stuck in a mail
> filter on the way ... Paolo, Sean, did you get them?

Yeah, I have them.  I'll prep a pull request, there are many KUT x86 patches
floating around that need to get merged.  Will likely take me a few days though.
Sean Christopherson April 6, 2023, 3:08 a.m. UTC | #4
On Thu, Mar 23, 2023, Sean Christopherson wrote:
> On Thu, Mar 23, 2023, Thomas Huth wrote:
> > On 14/02/2023 07.47, Like Xu wrote:
> > > CC more KUT maintainers, could anyone pick up these two minor x86 tests ?
> > 
> > Your patches never made it to my inbox - I guess they got stuck in a mail
> > filter on the way ... Paolo, Sean, did you get them?
> 
> Yeah, I have them.  I'll prep a pull request, there are many KUT x86 patches
> floating around that need to get merged.  Will likely take me a few days though.

Gah, forgot about this series.  I'll plan on doing another pull request next week,
there are more outstanding KUT patches besides this one.  And I'm finally diving
into KVM PMU stuff tomorrow, too.
Sean Christopherson June 7, 2023, 11:25 p.m. UTC | #5
On Mon, 26 Dec 2022 15:54:10 +0800, Like Xu wrote:
> We have adopted a test-driven development approach for vPMU's features,
> and these two fixes below cover the paths for at least two corner use cases.
> 
> Like Xu (2):
>   x86/pmu: Add Intel Guest Transactional (commited) cycles testcase
>   x86/pmu: Wrap the written counter value with gp_counter_width
> 
> [...]

Applied to kvm-x86 next, thanks!

[1/2] x86/pmu: Add Intel Guest Transactional (commited) cycles testcase
      https://github.com/kvm-x86/kvm-unit-tests/commit/ece17cfebc27
[2/2] x86/pmu: Wrap the written counter value with gp_counter_width
      https://github.com/kvm-x86/linux/commit/15507bb0

--
https://github.com/kvm-x86/kvm-unit-tests/tree/next