[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 00/16] s390x cpu model implementation
From: |
Eduardo Habkost |
Subject: |
Re: [Qemu-devel] [PATCH v3 00/16] s390x cpu model implementation |
Date: |
Mon, 2 Mar 2015 16:25:42 -0300 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Mon, Mar 02, 2015 at 01:43:52PM +0100, Michael Mueller wrote:
[...]
>
> What's currently a little bit unclear to me is how to best initialize the
> various accelerators for machine 'none'. I played around with different
> options and finally came up with the following sugguestion:
>
> Introduce a QEMU "probe mode" that gets entered in case the current machine
> is "none" and no specific accelerator is requested on the cmd line. When
> in that mode, loop trough a list of acellerators in configure_accelerator
> and invoke all their init methods once. The last accelerator to init shall
> be tcg.
>
> In cpu model context that allows to initialize the S390 CPU classes for
> each single accelertor which supports it. Whence the callback for
> qemu-cpu-definitions allows to populate its answer string according to the
> above sketched extended CpuDefinitionInfo type for multiplaccelerators.
To initialize the various accelereators, you should just be able to
create temporary QOM accelerators on the fly, when you need them. That
was the whole point of the conversion of accelerators to QOM.
So we shouldn't need any special probe mode as long as: 1) all
accelerators don't do anything destructive (that affects global QEMU
state) in their instance_init functions; 2) the probing code simply
creates the accel objects when needed, query for information, and then
destroy them.
--
Eduardo
- [Qemu-devel] [PATCH v3 02/16] Introduce option --probe to switch into probe mode, (continued)
- [Qemu-devel] [PATCH v3 02/16] Introduce option --probe to switch into probe mode, Michael Mueller, 2015/03/02
- [Qemu-devel] [PATCH v3 08/16] target-s390x: Add cpu model alias definition routines, Michael Mueller, 2015/03/02
- [Qemu-devel] [PATCH v3 09/16] target-s390x: Update linux-headers/asm-s390/kvm.h, Michael Mueller, 2015/03/02
- [Qemu-devel] [PATCH v3 14/16] target-s390x: Extend QMP command query-cpu-definitions, Michael Mueller, 2015/03/02
- [Qemu-devel] [PATCH v3 15/16] target-s390x: Introduce facility test routine, Michael Mueller, 2015/03/02
- [Qemu-devel] [PATCH v3 04/16] target-s390x: Introduce cpu facilities, Michael Mueller, 2015/03/02
- [Qemu-devel] [PATCH v3 10/16] target-s390x: Add KVM VM attribute interface for cpu models, Michael Mueller, 2015/03/02
- [Qemu-devel] [PATCH v3 16/16] target-s390x: Enable cpu model usage, Michael Mueller, 2015/03/02
- Re: [Qemu-devel] [PATCH v3 00/16] s390x cpu model implementation,
Eduardo Habkost <=