kvm.c (396b6c50c3e25f55ae59ab8fc551576d24ce919b) kvm.c (cac675b54e6a9cb71dde6517f39c1763ae94c107)
1/*
2 * ARM implementation of KVM hooks
3 *
4 * Copyright Christoffer Dall 2009-2010
5 * Copyright Mian-M. Hamayun 2013, Virtual Open Systems
6 * Copyright Alex Bennée 2014, Linaro
7 *
8 * This work is licensed under the terms of the GNU GPL, version 2 or later.

--- 483 unchanged lines hidden (view full) ---

492}
493
494static void kvm_steal_time_set(Object *obj, bool value, Error **errp)
495{
496 ARM_CPU(obj)->kvm_steal_time = value ? ON_OFF_AUTO_ON : ON_OFF_AUTO_OFF;
497}
498
499/* KVM VCPU properties should be prefixed with "kvm-". */
1/*
2 * ARM implementation of KVM hooks
3 *
4 * Copyright Christoffer Dall 2009-2010
5 * Copyright Mian-M. Hamayun 2013, Virtual Open Systems
6 * Copyright Alex Bennée 2014, Linaro
7 *
8 * This work is licensed under the terms of the GNU GPL, version 2 or later.

--- 483 unchanged lines hidden (view full) ---

492}
493
494static void kvm_steal_time_set(Object *obj, bool value, Error **errp)
495{
496 ARM_CPU(obj)->kvm_steal_time = value ? ON_OFF_AUTO_ON : ON_OFF_AUTO_OFF;
497}
498
499/* KVM VCPU properties should be prefixed with "kvm-". */
500void kvm_arm_add_vcpu_properties(Object *obj)
500void kvm_arm_add_vcpu_properties(ARMCPU *cpu)
501{
501{
502 ARMCPU *cpu = ARM_CPU(obj);
503 CPUARMState *env = &cpu->env;
502 CPUARMState *env = &cpu->env;
503 Object *obj = OBJECT(cpu);
504
505 if (arm_feature(env, ARM_FEATURE_GENERIC_TIMER)) {
506 cpu->kvm_adjvtime = true;
507 object_property_add_bool(obj, "kvm-no-adjvtime", kvm_no_adjvtime_get,
508 kvm_no_adjvtime_set);
509 object_property_set_description(obj, "kvm-no-adjvtime",
510 "Set on to disable the adjustment of "
511 "the virtual counter. VM stopped time "

--- 1920 unchanged lines hidden ---
504
505 if (arm_feature(env, ARM_FEATURE_GENERIC_TIMER)) {
506 cpu->kvm_adjvtime = true;
507 object_property_add_bool(obj, "kvm-no-adjvtime", kvm_no_adjvtime_get,
508 kvm_no_adjvtime_set);
509 object_property_set_description(obj, "kvm-no-adjvtime",
510 "Set on to disable the adjustment of "
511 "the virtual counter. VM stopped time "

--- 1920 unchanged lines hidden ---