qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PULL 48/87] x86: move SMM property to X86MachineState


From: Michal Prívozník
Subject: Re: [PULL 48/87] x86: move SMM property to X86MachineState
Date: Mon, 23 Dec 2019 15:46:04 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.0

On 12/23/19 2:38 PM, Paolo Bonzini wrote:
> On 23/12/19 12:40, Michal Prívozník wrote:
>>
>> diff --git i/target/i386/kvm.c w/target/i386/kvm.c
>> index 0b511906e3..7ee3202634 100644
>> --- i/target/i386/kvm.c
>> +++ w/target/i386/kvm.c
>> @@ -2173,6 +2173,7 @@ int kvm_arch_init(MachineState *ms, KVMState *s)
>>      }
>>
>>      if (kvm_check_extension(s, KVM_CAP_X86_SMM) &&
>> +        object_dynamic_cast(OBJECT(ms), TYPE_X86_MACHINE) &&
>>          x86_machine_is_smm_enabled(X86_MACHINE(ms))) {
>>          smram_machine_done.notify = register_smram_listener;
>>          qemu_add_machine_init_done_notifier(&smram_machine_done);
> 
> Yes, it's correct.  Is it okay if I just send a patch with your
> Signed-off-by?

ACK.

Michal




reply via email to

[Prev in Thread] Current Thread [Next in Thread]