From: Thomas Huth <thuth@redhat.com>
To: qemu-devel@nongnu.org
Cc: Peter Maydell <peter.maydell@linaro.org>
Subject: Re: [Qemu-devel] [PATCH v4 2/6] m68k: Add NeXTcube keyboard device
Date: Tue, 3 Sep 2019 11:21:46 +0200 [thread overview]
Message-ID: <6c78f2dd-69f3-1f6e-bb88-6e83d78f2c36@redhat.com> (raw)
In-Reply-To: <CAFEAcA-EAZUL48-WVfrHLb6ONgW+VbV8RtppM_nAAHua+rH36g@mail.gmail.com>
On 03/09/2019 11.12, Peter Maydell wrote:
> On Sat, 31 Aug 2019 at 06:19, Thomas Huth <huth@tuxfamily.org> wrote:
>>
>> Am Tue, 13 Aug 2019 11:16:44 +0100
>> schrieb Peter Maydell <peter.maydell@linaro.org>:
>>
>>> On Tue, 9 Jul 2019 at 08:35, Thomas Huth <huth@tuxfamily.org> wrote:
>>>>
>>>> It is likely still quite incomplete (e.g. mouse and interrupts are
>>>> not implemented yet), but it is good enough for keyboard input at
>>>> the firmware monitor.
>>>> This code has been taken from Bryce Lanham's GSoC 2011 NeXT branch
>>>> at
>>>>
>>>> https://github.com/blanham/qemu-NeXT/blob/next-cube/hw/next-kbd.c
>>>>
>>>> and altered to fit the latest interface of the current QEMU (e.g.
>>>> to use memory_region_init_io() instead of
>>>> cpu_register_physical_memory()).
>>>>
>>>> Signed-off-by: Thomas Huth <huth@tuxfamily.org>
>>>> +static void nextkbd_class_init(ObjectClass *oc, void *data)
>>>> +{
>>>> + DeviceClass *dc = DEVICE_CLASS(oc);
>>>> +
>>>> + set_bit(DEVICE_CATEGORY_INPUT, dc->categories);
>>>> + dc->realize = nextkbd_realize;
>>>> + dc->reset = nextkbd_reset;
>>>> +}
>>>
>>> This one definitely needs migration state...
>>
>> m68k machines are currently unmigratable - see vmstate_m68k_cpu in
>> target/m68k/cpu.c. So I assume it's currently enough if I add a
>> ".unmigratable = 1" here, too?
>
> Well, if you insist I guess. But personally I find it's just
> as easy to simply implement migration state.
My main concern is testing - if there is no way to test it, I can only
implement this in a hit-or-miss style, which I really don't like (though
it might be easy for such a simple device). So for the time being,
marking it with ".unmigratable = 1" and a proper TODO comments sounds
like the best solution to me.
Thomas
next prev parent reply other threads:[~2019-09-03 9:27 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-09 7:32 [Qemu-devel] [PATCH v4 0/6] m68k: Add basic support for the NeXTcube machine Thomas Huth
2019-07-09 7:32 ` [Qemu-devel] [PATCH v4 1/6] m68k: Add NeXTcube framebuffer device emulation Thomas Huth
2019-08-13 10:11 ` Philippe Mathieu-Daudé
2019-08-13 10:15 ` Peter Maydell
2019-07-09 7:32 ` [Qemu-devel] [PATCH v4 2/6] m68k: Add NeXTcube keyboard device Thomas Huth
2019-08-13 10:13 ` Philippe Mathieu-Daudé
2019-08-13 10:16 ` Peter Maydell
2019-08-31 5:18 ` Thomas Huth
2019-09-03 9:12 ` Peter Maydell
2019-09-03 9:21 ` Thomas Huth [this message]
2019-07-09 7:32 ` [Qemu-devel] [PATCH v4 3/6] m68k: Add NeXTcube machine Thomas Huth
2019-08-13 10:20 ` Philippe Mathieu-Daudé
2019-07-09 7:32 ` [Qemu-devel] [PATCH v4 4/6] escc: introduce a selector for the register bit Thomas Huth
2019-08-13 10:21 ` Philippe Mathieu-Daudé
2019-07-09 7:32 ` [Qemu-devel] [PATCH v4 5/6] m68k: Add serial controller to the NeXTcube machine Thomas Huth
2019-08-13 10:26 ` Philippe Mathieu-Daudé
2019-07-09 7:32 ` [Qemu-devel] [PATCH v4 6/6] m68k: Add an entry for the NeXTcube machine to the MAINTAINERS file Thomas Huth
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=6c78f2dd-69f3-1f6e-bb88-6e83d78f2c36@redhat.com \
--to=thuth@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
/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).