qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: <peng.hao2@zte.com.cn>
To: philmd@redhat.com
Cc: peter.maydell@linaro.org, qemu-devel@nongnu.org, qemu-arm@nongnu.org
Subject: Re: [Qemu-devel] [PATCH V4 3/5] hw/misc/pvpanic: Add the MMIO interface
Date: Thu, 25 Oct 2018 19:48:00 +0800 (CST)	[thread overview]
Message-ID: <201810251948005355437@zte.com.cn> (raw)
In-Reply-To: <467e77d8-48af-5361-3e31-b9eac79d968d@redhat.com>

>> Signed-off-by: Peng Hao <peng.hao2@zte.com.cn>
>> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
>> ---
>>   hw/misc/pvpanic.c         | 74 ++++++++++++++++++++++++++++++++++++++---------
>>   include/hw/misc/pvpanic.h |  2 ++
>>   2 files changed, 62 insertions(+), 14 deletions(-)
>>
>> diff --git a/hw/misc/pvpanic.c b/hw/misc/pvpanic.c
>> index dd3aef2..b575e01 100644
>> --- a/hw/misc/pvpanic.c
>> +++ b/hw/misc/pvpanic.c
>> @@ -2,10 +2,12 @@
>>    * QEMU simulated pvpanic device.
>>    *
>>    * Copyright Fujitsu, Corp. 2013
>> + * Copyright (c) 2018 ZTE Ltd.
>>    *
>>    * Authors:
>>    *     Wen Congyang <wency@cn.fujitsu.com>
>>    *     Hu Tao <hutao@cn.fujitsu.com>
>> + *     Peng Hao <peng.hao2@zte.com.cn>
>>    *
>>    * This work is licensed under the terms of the GNU GPL, version 2 or later.
>>    * See the COPYING file in the top-level directory.
>> @@ -45,30 +47,48 @@ static void handle_event(int event)
>>
>>   #include "hw/isa/isa.h"
>>
>> -typedef struct PVPanicState {
>> +typedef struct PVPanicCommonState {
>> +    MemoryRegion mr;
>> +} PVPanicCommonState;
>
>Maybe we can drop this type now.
>
yeah, just keeping PVPanicISAState and PVPanicMMIOState is fine.

>> +
>> +typedef struct PVPanicISAState {
>>       /* private */
>>       ISADevice isadev;
>
>Here goes this comment:
>
>/* public */
>
>> +    uint16_t ioport;
>> +    /* public */
>> +    PVPanicCommonState common;
>> +} PVPanicISAState;
>> +
>> +typedef struct PVPanicMMIOState {
>> +    /* private */
>> +    SysBusDevice busdev;
>>
[...]

>>
>
>Depending of the response to Peter's question [*]:
>
>I'd also like some confirmation from folks more familiar with the
>current state of the art in guest-to-management-layer communication
>that pvpanic is still the recommended way to achieve this goal,
>and hasn't been obsoleted by something else.
>

Because this pvpanic device  is used when GUEST OS panics. At this point, communication with QEMU can not rely on any driver,
 and only the simplest IO or MMIO can be used. 

>I might work a bit on this patch next week.
>
>[*] https://lists.gnu.org/archive/html/qemu-devel/2018-10/msg03861.html

  reply	other threads:[~2018-10-25 11:48 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-25 19:23 [Qemu-devel] [PATCH V4 0/5] Peng Hao
2018-10-25 19:23 ` [Qemu-devel] [PATCH V4 1/5] hw/misc/pvpanic: Build the pvpanic device in $(common-obj) Peng Hao
2018-10-25 19:23 ` [Qemu-devel] [PATCH V4 2/5] hw/misc/pvpanic: Cosmetic renaming Peng Hao
2018-10-25 19:23 ` [Qemu-devel] [PATCH V4 3/5] hw/misc/pvpanic: Add the MMIO interface Peng Hao
2018-10-25 11:38   ` Philippe Mathieu-Daudé
2018-10-25 11:48     ` peng.hao2 [this message]
2018-11-08  0:55     ` peng.hao2
2018-11-08  9:38     ` Peter Maydell
2018-11-12 11:25       ` Stefan Hajnoczi
2018-10-25 19:23 ` [Qemu-devel] [PATCH V4 4/5] hw/arm/virt: Use the pvpanic device Peng Hao
2018-10-25 11:28   ` Philippe Mathieu-Daudé
2018-10-25 19:23 ` [Qemu-devel] [PATCH V4 5/5] hw/arm/virt: add pvpanic device in virt acpi table Peng Hao

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=201810251948005355437@zte.com.cn \
    --to=peng.hao2@zte.com.cn \
    --cc=peter.maydell@linaro.org \
    --cc=philmd@redhat.com \
    --cc=qemu-arm@nongnu.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).