Re: [PATCH] KVM: selftests: Assert that XSAVE supports XTILE in amx_test

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Dec 27, 2022 at 2:05 PM Aaron Lewis <aaronlewis@xxxxxxxxxx> wrote:
>
> The check in amx_test that ensures that XSAVE supports XTILE, doesn't
> actually check anything.  It simply returns a bool which the test does
> nothing with.
> Additionally, the check ensures that at least one of the XTILE bits are
> set, XTILECFG or XTILEDATA, when it really should be checking that both
> are set.
>
> Change both behaviors to:
>  1) Asserting if the check fails.
>  2) Fail if both XTILECFG and XTILEDATA aren't set.

For (1), why not simply undo the damage caused by commit 5dc19f1c7dd3
("KVM: selftests: Convert AMX test to use X86_PROPRETY_XXX"), and
restore the GUEST_ASSERT() at the call site?

Should this be two separate changes, since there are two separate bug fixes?



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux