[libvirt PATCH 04/28] cpu_map: Add script to sync from QEMU i386 cpu features

Jiri Denemark jdenemar at redhat.com
Mon Oct 24 14:20:52 UTC 2022


On Wed, Oct 19, 2022 at 18:56:04 +0200, Tim Wiederhake wrote:
> This script is intended to help in synchronizing i386 QEMU cpu
> feature definitions with libvirt.
> 
> QEMU's attribute list for the "max-x86_64-cpu" contains non-cpu-feature
> items and needs to be filtered before being useful.
> 
> Signed-off-by: Tim Wiederhake <twiederh at redhat.com>
> ---
>  src/cpu_map/sync_qemu_features_i386.py | 278 +++++++++++++++++++++++++
>  1 file changed, 278 insertions(+)
>  create mode 100755 src/cpu_map/sync_qemu_features_i386.py
> 
> diff --git a/src/cpu_map/sync_qemu_features_i386.py b/src/cpu_map/sync_qemu_features_i386.py
> new file mode 100755
> index 0000000000..fba7d35609
> --- /dev/null
> +++ b/src/cpu_map/sync_qemu_features_i386.py
> @@ -0,0 +1,278 @@
...
> +def main():
> +    parser = argparse.ArgumentParser(
> +        description="Synchronize x86 cpu features from QEMU i386 target.")
> +    parser.add_argument(
> +        "--qemu",
> +        help="TODO",

Looks like there's some more work to do here :-)

Jirka


More information about the libvir-list mailing list