qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] target/i386/cpu: Misc Cleanup on host-cache-info
@ 2024-06-19 14:42 Zhao Liu
  2024-06-19 14:42 ` [PATCH 1/3] target/i386/cpu: Use hex mask to check for valid cache CPUID leaf Zhao Liu
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Zhao Liu @ 2024-06-19 14:42 UTC (permalink / raw)
  To: Paolo Bonzini, Igor Mammedov; +Cc: qemu-devel, Zhao Liu

Hi,

This series is mainly to addresss Igor's comment about if one check in
host-cache-info could be removed [1], i.e., whether Guest's cache
topology should be self-consistent (able to correspond to Guest's CPU
topology level, as we currently do with the Guest cache topo).

I originally thought (in the mail thread with Igor) that host-cache-info
should allow Guest and Host to have the same topology level information,
e.g. if Host shares cache on core level, then via host-cache-info, Guest
should also share on core level.

But in practice, I gave up on this idea, because in the cache info
passthrough case, it should be possible for Guest to get the original
Host cache info (including the original threads sharing cache) without
further modifying the info to Guest.

Therefore, I simply added the comment in PATCH 3 to hopefully illustrate
the need for such a check.

Hope my explanation is clear enough so that my poor English doesn't
bother you!

[1]: https://lore.kernel.org/qemu-devel/20240527170317.14520a2f@imammedo.users.ipa.redhat.com/

Thanks and Best Regards,
Zhao
---
Zhao Liu (3):
  target/i386/cpu: Use hex mask to check for valid cache CPUID leaf
  target/i386/cpu: Check guest_thread_ids_per_pkg for host-cache-info
    case
  target/i386/cpu: Add comment about adjusting the Guest cache topo for
    host-cache-info

 target/i386/cpu.c | 24 +++++++++++++++++++-----
 1 file changed, 19 insertions(+), 5 deletions(-)

-- 
2.34.1



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-07-15 13:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-19 14:42 [PATCH 0/3] target/i386/cpu: Misc Cleanup on host-cache-info Zhao Liu
2024-06-19 14:42 ` [PATCH 1/3] target/i386/cpu: Use hex mask to check for valid cache CPUID leaf Zhao Liu
2024-06-19 14:42 ` [PATCH 2/3] target/i386/cpu: Check guest_thread_ids_per_pkg for host-cache-info case Zhao Liu
2024-06-19 14:42 ` [PATCH 3/3] target/i386/cpu: Add comment about adjusting the Guest cache topo for host-cache-info Zhao Liu
2024-07-08  2:23 ` [PATCH 0/3] target/i386/cpu: Misc Cleanup on host-cache-info Zhao Liu
2024-07-15 13:15   ` Zhao Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).