qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Mihai Carabas <mihai.carabas@oracle.com>
To: qemu-devel@nongnu.org
Cc: Mihai Carabas <mihai.carabas@oracle.com>,
	peter.maydell@linaro.org, kraxel@redhat.com
Subject: [PATCH v2] Add support for pvpanic pci device
Date: Fri, 18 Dec 2020 14:53:13 +0200	[thread overview]
Message-ID: <1608295996-8464-1-git-send-email-mihai.carabas@oracle.com> (raw)

This patchset adds support for pvpanic pci device. This is the second revision,
re-written after Peter Maydell's feedback:
- split the code in common, isa and pci
- obtained 0x101 device id per documenation from Gerd Hoffmann
- fix-up minor documentation issue

How to test this:
/usr/bin/qemu-system-aarch64 \
        -machine virt,gic-version=3 -device pvpanic-pci

After that you need to run a Linux kernel as guest, but you have to also apply
the patches I have sent for adding pci support for the pvpanic driver [1].

[1] https://lkml.org/lkml/2020/10/29/645



Mihai Carabas (3):
  hw/misc/pvpanic: split-out generic and bus dependent code
  hw/misc/pvpanic: add PCI interface support
  pvpanic : update pvpanic spec document

 docs/specs/pci-ids.txt    |  2 +
 docs/specs/pvpanic.txt    | 13 ++++++-
 hw/i386/Kconfig           |  1 -
 hw/misc/Kconfig           | 13 ++++++-
 hw/misc/meson.build       |  4 +-
 hw/misc/pvpanic-isa.c     | 95 +++++++++++++++++++++++++++++++++++++++++++++++
 hw/misc/pvpanic-pci.c     | 87 +++++++++++++++++++++++++++++++++++++++++++
 hw/misc/pvpanic.c         | 85 +++---------------------------------------
 include/hw/misc/pvpanic.h | 24 +++++++++++-
 include/hw/pci/pci.h      |  1 +
 tests/qtest/meson.build   |  2 +-
 11 files changed, 241 insertions(+), 86 deletions(-)
 create mode 100644 hw/misc/pvpanic-isa.c
 create mode 100644 hw/misc/pvpanic-pci.c

-- 
1.8.3.1



             reply	other threads:[~2020-12-18 14:04 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-18 12:53 Mihai Carabas [this message]
2020-12-18 12:53 ` [PATCH 1/3] hw/misc/pvpanic: split-out generic and bus dependent code Mihai Carabas
2021-01-08 12:14   ` Peter Maydell
2020-12-18 12:53 ` [PATCH 2/3] hw/misc/pvpanic: add PCI interface support Mihai Carabas
2020-12-22 15:30   ` Gerd Hoffmann
2020-12-22 16:03     ` Mihai Carabas
2021-01-08 12:28   ` Peter Maydell
2020-12-18 12:53 ` [PATCH 3/3] pvpanic : update pvpanic spec document Mihai Carabas
2021-01-08 12:00   ` Peter Maydell

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=1608295996-8464-1-git-send-email-mihai.carabas@oracle.com \
    --to=mihai.carabas@oracle.com \
    --cc=kraxel@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).