From: Peter Maydell <peter.maydell@linaro.org>
To: qemu-devel@nongnu.org
Cc: kvmarm@lists.cs.columbia.edu, patches@linaro.org
Subject: [Qemu-devel] [PATCH v9 00/11] target-arm: mach virt and -cpu host support
Date: Fri, 22 Nov 2013 17:17:07 +0000 [thread overview]
Message-ID: <1385140638-10444-1-git-send-email-peter.maydell@linaro.org> (raw)
This patchset combines the 'virt' machine definition and
-cpu host support patchsets I've posted previous versions
of. I think these are now ready to go in once 1.8 opens
up; review appreciated.
Changes since previous versions:
* added in -cpu host patchset, since it really only makes
sense with mach-virt
* rearranged virt address space a bit to allow space
for a reasonable sized boot flash device and possible
PCI window if a PCI controller model ever becomes possible
* fixed bug where we weren't starting secondary CPUs in
"PSCI power-down" state (by adding a CPU property which
lets the board specify that the CPU starts powered down)
[thanks to Giridhar Maruthy for tracking this down]
* includes a KVM header update against current mainline
* includes (previously RFC'd) patch which provides defines
of some kernel KVM constants we can use even if not CONFIG_KVM
* put the KVM CPU type into the CPU object rather than having
a silly 'QOM object type => constant' lookup table
* put dtb 'compatible' string into CPU object rather than
having the board model need to know about it
* abstracted out the "create a scratch vcpu for querying
for capabilities" code; this is currently only called in
one place, but the abstraction will be needed for 64 bit
KVM ARM support
Mostly this is cleanup and streamlining which I noticed
was either possible or necessary in the course of putting
64 bit KVM ARM control on top of this patchset.
The kernel patch to get the PL011 to work is still needed
(Christoffer tells me he's working on getting a proper fix
done for this):
diff --git a/arch/arm/mach-virt/virt.c b/arch/arm/mach-virt/virt.c
index b184e57..2b6aceb 100644
--- a/arch/arm/mach-virt/virt.c
+++ b/arch/arm/mach-virt/virt.c
@@ -21,11 +21,13 @@
#include <linux/of_irq.h>
#include <linux/of_platform.h>
#include <linux/smp.h>
+#include <linux/clk-provider.h>
#include <asm/mach/arch.h>
static void __init virt_init(void)
{
+ of_clk_init(NULL);
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
}
John Rigby (1):
hw/arm/boot: Allow boards to provide an fdt blob
Peter Maydell (10):
target-arm: Provide mechanism for getting KVM constants even if not
CONFIG_KVM
device_tree.c: Terminate the empty reservemap in create_device_tree()
target-arm: Provide PSCI constants to generic QEMU code
target-arm: Add ARMCPU field for Linux device-tree 'compatible'
string
target-arm: Allow secondary KVM CPUs to be booted via PSCI
hw/arm: Add 'virt' platform
linux-headers: Update from mainline
target-arm: Don't hardcode KVM target CPU to be A15
target-arm: Provide '-cpu host' when running KVM
hw/arm/virt: Support -cpu host
device_tree.c | 4 +
hw/arm/Makefile.objs | 2 +-
hw/arm/boot.c | 32 ++-
hw/arm/virt.c | 452 ++++++++++++++++++++++++++++++
include/hw/arm/arm.h | 7 +
linux-headers/asm-arm/kvm.h | 3 +-
linux-headers/asm-powerpc/epapr_hcalls.h | 4 +-
linux-headers/asm-powerpc/kvm.h | 86 +++++-
linux-headers/asm-x86/hyperv.h | 19 ++
linux-headers/asm-x86/kvm.h | 6 +-
linux-headers/linux/kvm.h | 11 +
target-arm/cpu-qom.h | 11 +
target-arm/cpu.c | 59 ++++
target-arm/cpu.h | 13 +-
target-arm/helper.c | 6 +
target-arm/kvm-consts.h | 64 +++++
target-arm/kvm.c | 243 +++++++++++++++-
target-arm/kvm_arm.h | 55 ++++
18 files changed, 1033 insertions(+), 44 deletions(-)
create mode 100644 hw/arm/virt.c
create mode 100644 target-arm/kvm-consts.h
--
1.7.9.5
next reply other threads:[~2013-11-22 17:17 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-22 17:17 Peter Maydell [this message]
2013-11-22 17:17 ` [Qemu-devel] [PATCH v9 01/11] target-arm: Provide mechanism for getting KVM constants even if not CONFIG_KVM Peter Maydell
2013-11-22 17:17 ` [Qemu-devel] [PATCH v9 02/11] device_tree.c: Terminate the empty reservemap in create_device_tree() Peter Maydell
2013-11-24 8:04 ` Peter Crosthwaite
2013-11-22 17:17 ` [Qemu-devel] [PATCH v9 03/11] hw/arm/boot: Allow boards to provide an fdt blob Peter Maydell
2013-11-22 17:17 ` [Qemu-devel] [PATCH v9 04/11] target-arm: Provide PSCI constants to generic QEMU code Peter Maydell
2013-11-22 17:52 ` Christoffer Dall
2013-11-22 17:17 ` [Qemu-devel] [PATCH v9 05/11] target-arm: Add ARMCPU field for Linux device-tree 'compatible' string Peter Maydell
2013-11-22 17:17 ` [Qemu-devel] [PATCH v9 06/11] target-arm: Allow secondary KVM CPUs to be booted via PSCI Peter Maydell
2013-11-22 17:17 ` [Qemu-devel] [PATCH v9 07/11] hw/arm: Add 'virt' platform Peter Maydell
2013-11-22 18:11 ` Christoffer Dall
2013-11-22 18:17 ` Peter Maydell
2013-11-22 18:24 ` Christoffer Dall
2013-11-22 17:17 ` [Qemu-devel] [PATCH v9 08/11] linux-headers: Update from mainline Peter Maydell
2013-12-02 13:35 ` Peter Maydell
2013-11-22 17:17 ` [Qemu-devel] [PATCH v9 09/11] target-arm: Don't hardcode KVM target CPU to be A15 Peter Maydell
2013-11-22 17:17 ` [Qemu-devel] [PATCH v9 10/11] target-arm: Provide '-cpu host' when running KVM Peter Maydell
2013-11-22 18:25 ` Christoffer Dall
2013-11-22 18:50 ` Peter Maydell
2013-11-22 19:00 ` Christoffer Dall
2013-11-22 17:17 ` [Qemu-devel] [PATCH v9 11/11] hw/arm/virt: Support -cpu host Peter Maydell
2013-11-22 18:26 ` [Qemu-devel] [PATCH v9 00/11] target-arm: mach virt and -cpu host support Christoffer Dall
2013-12-02 13:46 ` 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=1385140638-10444-1-git-send-email-peter.maydell@linaro.org \
--to=peter.maydell@linaro.org \
--cc=kvmarm@lists.cs.columbia.edu \
--cc=patches@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).