qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] Querying possible -cpu variants


From: Daniel P . Berrangé
Subject: Re: [Qemu-devel] Querying possible -cpu variants
Date: Fri, 25 Jan 2019 10:10:32 +0000
User-agent: Mutt/1.10.1 (2018-07-13)

On Fri, Jan 25, 2019 at 12:58:04PM +0300, Pavel Dovgalyuk wrote:
> Hello.
> 
>  
> 
> We are making GUI for QEMU (which also should allow convenient record/replay 
> command line
> generation): https://github.com/ispras/qemu-gui
> 
>  
> 
> To fill the combo box in CPU selection form we run QEMU with "-cpu help" 
> command and parse its
> output.
> 
> The format of this list depends on target. Therefore our parsing code does 
> not look good (and also
> may corrupt someday).
> 
>  
> 
> Is there a better way of requesting this information?
> 
>  
> 
> Or we should do one of the following:
> 
> 1.       Patch all targets and make the uniform "-cpu help" output format

Machine parsing of "help" output is not supported by the QEMU project.
This must all be done via the QMP interfaces.

> 2.       Add QMP command for requesting this list.

This already exists as the 'query-cpu-definitions' command


Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|



reply via email to

[Prev in Thread] Current Thread [Next in Thread]