qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH qom-cpu for-1.4 03/14] cpu: Add model resolution


From: Andreas Färber
Subject: Re: [Qemu-devel] [PATCH qom-cpu for-1.4 03/14] cpu: Add model resolution support to CPUClass
Date: Sat, 26 Jan 2013 17:55:13 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130105 Thunderbird/17.0.2

Am 23.01.2013 13:07, schrieb Andreas Färber:
> Introduce CPUClass::class_by_name and add a default implementation.
[...]
> diff --git a/include/qom/cpu.h b/include/qom/cpu.h
> index 773caf9..cd0378e 100644
> --- a/include/qom/cpu.h
> +++ b/include/qom/cpu.h
> @@ -49,6 +49,8 @@ typedef struct CPUClass {
>      DeviceClass parent_class;
>      /*< public >*/
>  
> +    ObjectClass *(*class_by_name)(const char *cpu_model);
> +
>      void (*reset)(CPUState *cpu);
>  } CPUClass;
>  

Documentation missing:

diff --git a/include/qom/cpu.h b/include/qom/cpu.h
index cd0378e..8097692 100644
--- a/include/qom/cpu.h
+++ b/include/qom/cpu.h
@@ -40,6 +40,8 @@ typedef struct CPUState CPUState;

 /**
  * CPUClass:
+ * @class_by_name: Callback to map -cpu command line model name to an
+ * instantiatable CPU type.
  * @reset: Callback to reset the #CPUState to its initial state.
  *
  * Represents a CPU family or model.

Andreas

-- 
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg



reply via email to

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