On Fri, May 29, 2026 at 16:12:12 +0200, Jiri Denemark via Devel wrote: > From: Jiri Denemark <[email protected]> > > When probing host model CPU we already expand it to get a list of all > CPU features. Let's store the expanded CPU definition in virQEMUCaps and > copy it to domain capabilities when requested by the > VIR_CONNECT_GET_DOMAIN_CAPABILITIES_EXPAND_CPU_FEATURES flag instead of > expanding the CPU over and over on each request. > > Signed-off-by: Jiri Denemark <[email protected]> > --- > > Notes: > Version 2: > - includes misplaced hunks from 2/10 in v1 > - supported field renamed as expanded > - VIR_QEMU_CAPS_HOST_CPU_SUPPORTED enum value renamed as *_EXPANDED > > src/qemu/qemu_capabilities.c | 39 ++++++++++++++++++++++++++---------- > src/qemu/qemu_capabilities.h | 3 +++ > 2 files changed, 31 insertions(+), 11 deletions(-)
Reviewed-by: Peter Krempa <[email protected]>
