From: Paolo Bonzini <pbonzini@redhat.com>
To: Alexey Kardashevskiy <aik@ozlabs.ru>, qemu-devel@nongnu.org
Cc: Peter Maydell <peter.maydell@linaro.org>,
Stefan Hajnoczi <stefanha@redhat.com>,
Alexander Graf <agraf@suse.de>,
Markus Armbruster <armbru@redhat.com>,
qemu-ppc@nongnu.org, Alex Bligh <alex@alex.org.uk>,
Cornelia Huck <cornelia.huck@de.ibm.com>,
Luiz Capitulino <lcapitulino@redhat.com>,
Richard Henderson <rth@twiddle.net>
Subject: Re: [Qemu-devel] [PATCH v6 2/4] target-s390x: Migrate to new NMI interface
Date: Thu, 12 Jun 2014 10:41:28 +0200 [thread overview]
Message-ID: <539967B8.6020109@redhat.com> (raw)
In-Reply-To: <53996657.1020102@ozlabs.ru>
Il 12/06/2014 10:35, Alexey Kardashevskiy ha scritto:
> On 06/12/2014 05:42 PM, Paolo Bonzini wrote:
>> Il 12/06/2014 02:08, Alexey Kardashevskiy ha scritto:
>>>>> I would use the /machine object itself, not an extra object. Otherwise
>>>>> this looks good.
>>>
>>> "/machine" object is "machine" parameter from s390_init()? How do I add an
>>> interface to it? Create a machine class as it is done by
>>> spapr_machine_info? I am not that familiar with QOM and definitely miss
>>> something.
>>
>> No, you are not. :) You need exactly to do what was done for sPAPR. Note
>> that s390 has two machine classes.
>
> 2 machines... Heh. If only. Here is x86:
>
> qemu_register_machine(&pc_i440fx_machine_v2_1);
> qemu_register_machine(&pc_i440fx_machine_v2_0);
> qemu_register_machine(&pc_i440fx_machine_v1_7);
> qemu_register_machine(&pc_i440fx_machine_v1_6);
> qemu_register_machine(&pc_i440fx_machine_v1_5);
> qemu_register_machine(&pc_i440fx_machine_v1_4);
> qemu_register_machine(&pc_machine_v1_3);
> qemu_register_machine(&pc_machine_v1_2);
> qemu_register_machine(&pc_machine_v1_1);
> qemu_register_machine(&pc_machine_v1_0);
> qemu_register_machine(&pc_machine_v0_15);
> qemu_register_machine(&pc_machine_v0_14);
> qemu_register_machine(&pc_machine_v0_13);
> qemu_register_machine(&pc_machine_v0_12);
> qemu_register_machine(&pc_machine_v0_11);
> qemu_register_machine(&pc_machine_v0_10);
> qemu_register_machine(&isapc_machine);
> qemu_register_machine(&xenfv_machine);
>
>
> qemu_register_machine(&pc_q35_machine_v2_1);
> qemu_register_machine(&pc_q35_machine_v2_0);
> qemu_register_machine(&pc_q35_machine_v1_7);
> qemu_register_machine(&pc_q35_machine_v1_6);
> qemu_register_machine(&pc_q35_machine_v1_5);
> qemu_register_machine(&pc_q35_machine_v1_4);
>
>
> These all are QEMUMachine's, not TYPE_MACHINE so I'll need to convert them too.
There is a patch on the list from Eduardo Habkost to convert them and
especially to add a common TYPE_PC_MACHINE superclass.
Just do s390 and PPC for now. We'll take care later of x86.
Paolo
next prev parent reply other threads:[~2014-06-12 8:42 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-11 17:02 [Qemu-devel] [PATCH v6 0/4] cpus: Add generic "nmi" monitor command support Alexey Kardashevskiy
2014-06-11 17:03 ` [Qemu-devel] [PATCH v6 1/4] cpus: Define callback for QEMU "nmi" command Alexey Kardashevskiy
2014-06-11 17:21 ` Eric Blake
2014-06-12 0:10 ` Alexey Kardashevskiy
2014-06-12 1:46 ` Eric Blake
2014-06-12 3:29 ` Alexey Kardashevskiy
2014-06-12 13:42 ` Eric Blake
2014-06-11 17:03 ` [Qemu-devel] [PATCH v6 2/4] target-s390x: Migrate to new NMI interface Alexey Kardashevskiy
2014-06-11 17:29 ` Paolo Bonzini
2014-06-12 0:08 ` Alexey Kardashevskiy
2014-06-12 7:42 ` Paolo Bonzini
2014-06-12 8:35 ` Alexey Kardashevskiy
2014-06-12 8:41 ` Paolo Bonzini [this message]
2014-06-12 6:31 ` Cornelia Huck
2014-06-12 9:38 ` Alexey Kardashevskiy
2014-06-12 9:39 ` Alexander Graf
2014-06-12 9:55 ` Alexey Kardashevskiy
2014-06-12 11:02 ` Cornelia Huck
2014-06-12 12:33 ` Alexey Kardashevskiy
2014-06-11 17:03 ` [Qemu-devel] [PATCH v6 3/4] target-i386: " Alexey Kardashevskiy
2014-06-11 17:03 ` [Qemu-devel] [PATCH v6 4/4] target-ppc: Add support for " Alexey Kardashevskiy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=539967B8.6020109@redhat.com \
--to=pbonzini@redhat.com \
--cc=agraf@suse.de \
--cc=aik@ozlabs.ru \
--cc=alex@alex.org.uk \
--cc=armbru@redhat.com \
--cc=cornelia.huck@de.ibm.com \
--cc=lcapitulino@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=rth@twiddle.net \
--cc=stefanha@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).