aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEduardo Habkost <ehabkost@redhat.com>2017-05-03 17:35:50 -0300
committerEduardo Habkost <ehabkost@redhat.com>2017-05-17 10:37:01 -0300
commit642c1e05460a12c70c87fc350a31e2d318c4bcce (patch)
tree32ce55603c9ffc221d643b71b3f8196eb43fc869
parentc1ce65f710a9e1a4ae311731864743f0f5f2d348 (diff)
downloadqemu-642c1e05460a12c70c87fc350a31e2d318c4bcce.zip
qemu-642c1e05460a12c70c87fc350a31e2d318c4bcce.tar.gz
qemu-642c1e05460a12c70c87fc350a31e2d318c4bcce.tar.bz2
kvmclock: Remove user_creatable flag
kvmclock should be used by guests only when the appropriate CPUID feature flags are set on the VCPU, and it is automatically created by kvmclock_create() when those feature flags are set. This means creating a kvmclock device using -device is useless. Remove user_creatable from its device class. Cc: Marcel Apfelbaum <marcel@redhat.com> Cc: "Michael S. Tsirkin" <mst@redhat.com> Cc: Paolo Bonzini <pbonzini@redhat.com> Cc: Richard Henderson <rth@twiddle.net> Cc: Thomas Huth <thuth@redhat.com> Acked-by: Marcel Apfelbaum <marcel@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Message-Id: <20170503203604.31462-8-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
-rw-r--r--hw/i386/kvm/clock.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/hw/i386/kvm/clock.c b/hw/i386/kvm/clock.c
index 7665bef..13eca37 100644
--- a/hw/i386/kvm/clock.c
+++ b/hw/i386/kvm/clock.c
@@ -286,11 +286,6 @@ static void kvmclock_class_init(ObjectClass *klass, void *data)
dc->realize = kvmclock_realize;
dc->vmsd = &kvmclock_vmsd;
dc->props = kvmclock_properties;
- /*
- * FIXME: Set only because we are not sure yet if this device
- * will be outside the q35 sysbus whitelist.
- */
- dc->user_creatable = true;
}
static const TypeInfo kvmclock_info = {