summary refs log tree commit diff stats
path: root/hw/intc/kvm_irqcount.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2024-10-10 17:01:42 +0200
committerMarkus Armbruster <armbru@redhat.com>2024-10-18 15:03:35 +0200
commitdac7f90c1ccb717959fb216ace7126be5e3f330a (patch)
tree01147d9be8caf2d665562a5519f65c6ddd79d9fd /hw/intc/kvm_irqcount.c
parentf91cf8175bd40142a2dfddbd8e761b8ca1adc30f (diff)
downloadfocaccia-qemu-dac7f90c1ccb717959fb216ace7126be5e3f330a.tar.gz
focaccia-qemu-dac7f90c1ccb717959fb216ace7126be5e3f330a.zip
target/i386/cpu: Improve errors for out of bounds property values
The error message for a "stepping" value that is out of bounds is a
bit odd:

    $ qemu-system-x86_64 -cpu qemu64,stepping=16
    qemu-system-x86_64: can't apply global qemu64-x86_64-cpu.stepping=16: Property .stepping doesn't take value 16 (minimum: 0, maximum: 15)

The "can't apply global" part is an unfortunate artifact of -cpu's
implementation.  Left for another day.

The remainder feels overly verbose.  Change it to

    qemu64-x86_64-cpu: can't apply global qemu64-x86_64-cpu.stepping=16: parameter 'stepping' can be at most 15

Likewise for "family", "model", and "tsc-frequency".

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-ID: <20241010150144.986655-6-armbru@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Diffstat (limited to 'hw/intc/kvm_irqcount.c')
0 files changed, 0 insertions, 0 deletions