mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-03 13:47:18 +03:00
36230c9a18
There are multiple models of the panic device, the address type is only one and is valid only for "isa" model. To not break the virt-install/virt-xml the command line parser needs to be updated. Before this patch there was only one parameter that configured the "iobase". Now the first parameter configures a model but to keep it backward compatible it follows these rules: 1. there is only one parameter and it matches known model: --panic isa <panic model='isa'> <address iobase='0x505' type='isa'/> </panic> 2. there is only one parameter and it doesn't match any model: --panic 0x505 <panic model='isa'> <address iobase='0x505' type='isa'/> </panic> 3. there are two parameters: --panic isa,iobase=0x505 <panic model='isa'> <address iobase='0x505' type='isa'/> </panic> Signed-off-by: Pavel Hrdina <phrdina@redhat.com>