qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [Discussion 02/10] NEED_CPU_H: remove '#include "cpu.h"


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [Discussion 02/10] NEED_CPU_H: remove '#include "cpu.h"' from include/qemu-common.h
Date: Tue, 04 Mar 2014 13:23:54 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

Il 04/03/2014 13:19, Xuebing wang ha scritto:

Like Andreas I don't like this particularly.  You can add
migration/vmstate.h to qom/cpu.h instead.


In my humble opinion, qom/cpu is part of virtual machine along with
other hw peripherals, thus I'd prefer vmstate to depend on qom/cpu.

From object oriented design perspective, qom/cpu is one-level lower than
the modeling of virtual machine, do you agree?

vmstate is just the name of the infrastructure that takes a description of a struct's fields and serializes it onto a QEMUFile. If you look at include/migration, there's nothing that is specific to virtual machines except perhaps the declaration of two functions vmstate_register_ram and vmstate_unregister_ram.

Paolo



reply via email to

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