]> Git Repo - qemu.git/commitdiff
kvmclock: Remove user_creatable flag
authorEduardo Habkost <[email protected]>
Wed, 3 May 2017 20:35:50 +0000 (17:35 -0300)
committerEduardo Habkost <[email protected]>
Wed, 17 May 2017 13:37:01 +0000 (10:37 -0300)
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 <[email protected]>
Cc: "Michael S. Tsirkin" <[email protected]>
Cc: Paolo Bonzini <[email protected]>
Cc: Richard Henderson <[email protected]>
Cc: Thomas Huth <[email protected]>
Acked-by: Marcel Apfelbaum <[email protected]>
Reviewed-by: Thomas Huth <[email protected]>
Signed-off-by: Eduardo Habkost <[email protected]>
Message-Id: <20170503203604[email protected]>
Signed-off-by: Eduardo Habkost <[email protected]>
hw/i386/kvm/clock.c

index 7665bef999fc2fd3f79951290424852ef16b7838..13eca374cded13d4226bc4380a8d37769e9913ae 100644 (file)
@@ -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 = {
This page took 0.021936 seconds and 4 git commands to generate.