diff options
| author | Andreas Färber | 2012-03-04 21:32:34 +0100 |
|---|---|---|
| committer | Anthony Liguori | 2012-03-13 19:23:17 +0100 |
| commit | 03f48b0797c9904301ee91e0081e89b3a3250f91 (patch) | |
| tree | e0b9f4c1031b0411deb0d528a4c310bd2eff69f0 /linux-user | |
| parent | Merge remote-tracking branch 'mdroth/qga-pull-3-12-2012' into staging (diff) | |
| download | qemu-03f48b0797c9904301ee91e0081e89b3a3250f91.tar.gz qemu-03f48b0797c9904301ee91e0081e89b3a3250f91.tar.xz qemu-03f48b0797c9904301ee91e0081e89b3a3250f91.zip | |
kvmclock: Always register type
Currently, the "kvmclock" type is only registered when kvm_enabled().
This breaks when moving type registration to before command line
parsing (so that QOM types can be used for CPU and machine).
Since the QOM classes are lazy-initialized anyway and kvmclock_create()
has another kvm_enabled() check, simply drop the KVM check in
kvmclock_register_types().
kvm-i8259, kvm-apic and kvm-ioapic do not suffer from such a check.
Reviewed-by: please.
Signed-off-by: Andreas Färber <afaerber@suse.de>
Reviewed-by: Jan Kiszka <jan.kiszka@siemens.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'linux-user')
0 files changed, 0 insertions, 0 deletions
