This patch adds a PCI bus specific function pointer "route_intx_to_irq"
for GPEX.
This is used in detemining PCI INTx number from pin.
Signed-off-by: Pranavkumar Sawargaonkar
Signed-off-by: Tushar Jagad
---
hw/pci-host/gpex.c | 12
include/hw/pci-host/gpex.h
This patch stores information about assigned legacy interrupt numbers in
GPEX host structure.
This is used during GPEX INTx number determination from a pin during
INTx routing.
Signed-off-by: Pranavkumar Sawargaonkar
Signed-off-by: Tushar Jagad
---
hw/arm/virt.c | 4
1 file changed, 4
virt.c)
V1:
- Initial patchset
- https://lists.gnu.org/archive/html/qemu-devel/2015-04/msg01986.html
Pranavkumar Sawargaonkar (2):
pci: GPEX: Add a function to determine interrupt number for INTx
routing
arm: hw: virt: Store information about GPEX legacy interrupt numbers
hw/arm/virt.c
Hi PMM,
On 17 April 2015 at 15:23, Peter Maydell wrote:
> On 17 April 2015 at 09:55, Pranavkumar Sawargaonkar
> wrote:
>> This patch adds:
>> - Function to determine an irq number from qemu_irq.
>> - Function to determine and route legacy interrupts to a VM.
>
> C
This patch adds routine to route legacy interrupts to VM.
Signed-off-by: Pranavkumar Sawargaonkar
Signed-off-by: Tushar Jagad
---
hw/pci-host/gpex.c | 12
1 file changed, 12 insertions(+)
diff --git a/hw/pci-host/gpex.c b/hw/pci-host/gpex.c
index 9d8fb5a..35842e4 100644
--- a/hw
This patch adds a new function to get irq number from qemu irq.
Signed-off-by: Pranavkumar Sawargaonkar
Signed-off-by: Tushar Jagad
---
hw/core/irq.c| 9 +
include/hw/irq.h | 1 +
2 files changed, 10 insertions(+)
diff --git a/hw/core/irq.c b/hw/core/irq.c
index 8a62a36..0eeffdf
This patch adds:
- Function to determine an irq number from qemu_irq.
- Function to determine and route legacy interrupts to a VM.
Pranavkumar Sawargaonkar (2):
hw: irq: Add API to get irq number from qemu_irq
pci: GPEX: Add support to route legacy interrupts
hw/core/irq.c | 9
Hi PMM,
On 5 February 2015 at 17:18, Peter Maydell wrote:
> On 5 February 2015 at 11:43, Peter Maydell wrote:
>> On 5 February 2015 at 09:59, Pranavkumar Sawargaonkar
>> wrote:
>>> +
>>> +/* In 32bit guest endianess is determined by looking at CPSR
RM64.
Signed-off-by: Pranavkumar Sawargaonkar
---
target-arm/cpu.c | 24
target-arm/cpu.h | 2 ++
2 files changed, 26 insertions(+)
diff --git a/target-arm/cpu.c b/target-arm/cpu.c
index 285947f..4d9cded 100644
--- a/target-arm/cpu.c
+++ b/target-arm/cpu.c
@@ -320,6 +3
.
Reviewed-by: Peter Maydell
Signed-off-by: Pranavkumar Sawargaonkar
---
target-arm/kvm64.c | 13 -
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/target-arm/kvm64.c b/target-arm/kvm64.c
index ba16821..033babf 100644
--- a/target-arm/kvm64.c
+++ b/target-arm/kvm64.c
IENDIAN for target-arm
- Address the review comments received in v1.
- Rebased code on top of latest qemu code.
V1:
- First patch in this series.
- http://lists.gnu.org/archive/html/qemu-devel/2014-10/msg03321.html
Pranavkumar Sawargaonkar (2):
target-arm: KVM64: Get and Sync up guest register
.
Signed-off-by: Pranavkumar Sawargaonkar
---
target-arm/kvm64.c | 12
1 file changed, 12 insertions(+)
diff --git a/target-arm/kvm64.c b/target-arm/kvm64.c
index ba16821..96148c6 100644
--- a/target-arm/kvm64.c
+++ b/target-arm/kvm64.c
@@ -193,6 +193,10 @@ int
Changelog:
V2:
- Change the patch to be used generically for both ARM and ARM64.
- Address the review comments received in v1.
V1:
- First patch in this series.
- http://lists.gnu.org/archive/html/qemu-devel/2014-10/msg03321.html
Signed-off-by: Pranavkumar Sawargaonkar
---
target-arm/
ch to be used generically for both ARM and ARM64.
- Define TARGET_IS_BIENDIAN for target-arm
- Address the review comments received in v1.
- Rebased code on top of latest qemu code.
V1:
- First patch in this series.
- http://lists.gnu.org/archive/html/qemu-devel/2014-10/msg03321.html
Pranav
Hi PMM,
On 5 December 2014 at 19:41, Peter Maydell wrote:
> These patches implement support for migration/save/load on AArch64
> CPUs. The first one from Alex (with some mangling from me) just
> moves the sysreg sync code we have for 32-bit across to 64-bit.
> The second fills in the gaps in the
Hi PMM,
On 2 December 2014 at 21:29, Peter Maydell wrote:
> On 28 November 2014 at 13:06, Pranavkumar Sawargaonkar
> wrote:
>> In KVM ARM64 one can choose to run guest in 32bit mode i.e EL1 in AARCH32
>> mode.
>> This patch adds qemu support for running guest EL1 in A
using -cpu host,el1_aarch32
argument.
e.g.
"./qemu/aarch64-softmmu/qemu-system-aarch64 -nographic -display none \
-serial stdio -kernel ./Image -m 512 -M virt -cpu host,el1_aarch32 \
-initrd rootfs.img -append "console=ttyAMA0 root=/dev/ram" -enable-kvm"
Signed
Hi PMM,
On 28 October 2014 16:18, Peter Maydell wrote:
> On 28 October 2014 06:38, Pranavkumar Sawargaonkar
> wrote:
>> This patch implements a fucntion pointer virtio_is_big_endian()
>> from "CPUClass" structure for arm64.
>> Function aarch64_cpu_virtio_endi
Hi Greg,
On 28 October 2014 14:56, Greg Kurz wrote:
>
> On Tue, 28 Oct 2014 12:08:01 +0530
> Pranavkumar Sawargaonkar wrote:
>
> > This patch implements a fucntion pointer virtio_is_big_endian()
> > from "CPUClass" structure for arm64.
> > Function aar
ned-off-by: Pranavkumar Sawargaonkar
---
include/hw/virtio/virtio-access.h | 2 ++
target-arm/cpu64.c| 41 +++
2 files changed, 43 insertions(+)
diff --git a/include/hw/virtio/virtio-access.h
b/include/hw/virtio/virtio-access.h
index 46456f
Hi Peter,
On 16 June 2014 16:31, Peter Maydell wrote:
> On 16 June 2014 07:53, Pranavkumar Sawargaonkar
> wrote:
> > This patchset adds the QEMU side changes for providing PSCI v0.2 to VM.
> >
> > ChangeLog:
> >
> > V7:
> > - Sync linux headers ag
To implement kvm_arch_reset_vcpu(), we simply re-init the VCPU
using kvm_arm_vcpu_init() so that all registers of VCPU are set
to their reset values by in-kernel KVM code.
Signed-off-by: Pranavkumar Sawargaonkar
Signed-off-by: Anup Patel
Reviewed-by: Peter Maydell
---
target-arm/kvm64.c | 4
kvm_arch_init_vcpu() to enable KVM_ARM_VCPU_PSCI_0_2
feature for VCPU when KVM ARM/ARM64 has KVM_CAP_ARM_PSCI_0_2 capability.
Signed-off-by: Pranavkumar Sawargaonkar
Signed-off-by: Anup Patel
Reviewed-by: Peter Maydell
---
target-arm/kvm32.c | 3 +++
target-arm/kvm64.c | 3 +++
2 files changed, 6
If we have PSCI v0.2 emulation available for KVM ARM/ARM64 or TCG then
we need to provide PSCI v0.2 compatible string via generated DTB.
Signed-off-by: Pranavkumar Sawargaonkar
Signed-off-by: Anup Patel
Reviewed-by: Rob Herring
---
hw/arm/virt.c | 16 +++-
1 file changed, 15
same as described in PSCI v0.2 spec.
Signed-off-by: Pranavkumar Sawargaonkar
Signed-off-by: Anup Patel
Reviewed-by: Peter Maydell
---
target-arm/cpu-qom.h | 6 ++
target-arm/cpu.c | 1 +
target-arm/kvm32.c | 1 +
target-arm/kvm64.c | 1 +
4 files changed, 9 insertions(+)
diff --git a
Introduce a common kvm_arm_vcpu_init() for doing KVM_ARM_VCPU_INIT
ioctl in KVM ARM and KVM ARM64. This also helps us factor-out few
common code lines from kvm_arch_init_vcpu() for KVM ARM/ARM64.
Signed-off-by: Pranavkumar Sawargaonkar
Signed-off-by: Anup Patel
Reviewed-by: Peter Maydell
Syncup KVM related linux headers from kvm tree and next branch
using scripts/update-linux-headers.sh.
Signed-off-by: Pranavkumar Sawargaonkar
Signed-off-by: Anup Patel
---
linux-headers/asm-arm/kvm.h | 10 ++--
linux-headers/asm-arm64/kvm.h| 13 --
linux-headers/asm-mips
We will be using linux/psci.h for KVM ARM/ARM64 hence add it to
linux header sync-up script.
Signed-off-by: Pranavkumar Sawargaonkar
Signed-off-by: Anup Patel
Reviewed-by: Peter Maydell
---
scripts/update-linux-headers.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a
: Pranavkumar Sawargaonkar
Signed-off-by: Anup Patel
Reviewed-by: Peter Maydell
---
kvm-all.c | 16
1 file changed, 16 insertions(+)
diff --git a/kvm-all.c b/kvm-all.c
index 4e19eff..ef9f0f2 100644
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -1751,6 +1751,22 @@ int kvm_cpu_exec(CPUState
) implementation
V1:
- Initial RFC patchset
Pranavkumar Sawargaonkar (8):
update-linux-headers.sh: Add psci.h to linux header sync-up script
linux-headers: Update KVM headers with kvm tree's next branch.
kvm: Handle exit reason KVM_EXIT_SYSTEM_EVENT
target-arm: Common kvm_arm_vcpu_init()
If we have PSCI v0.2 emulation available for KVM ARM/ARM64 or TCG then
we need to provide PSCI v0.2 compatible string via generated DTB.
Signed-off-by: Pranavkumar Sawargaonkar
Signed-off-by: Anup Patel
---
hw/arm/virt.c | 16 +++-
1 file changed, 15 insertions(+), 1 deletion
To implement kvm_arch_reset_vcpu(), we simply re-init the VCPU
using kvm_arm_vcpu_init() so that all registers of VCPU are set
to their reset values by in-kernel KVM code.
Signed-off-by: Pranavkumar Sawargaonkar
Signed-off-by: Anup Patel
Reviewed-by: Peter Maydell
---
target-arm/kvm64.c
kvm_arch_init_vcpu() to enable KVM_ARM_VCPU_PSCI_0_2
feature for VCPU when KVM ARM/ARM64 has KVM_CAP_ARM_PSCI_0_2 capability.
Signed-off-by: Pranavkumar Sawargaonkar
Signed-off-by: Anup Patel
---
target-arm/kvm32.c |3 +++
target-arm/kvm64.c |3 +++
2 files changed, 6 insertions(+)
diff
same as described in PSCI v0.2 spec.
Signed-off-by: Pranavkumar Sawargaonkar
Signed-off-by: Anup Patel
---
target-arm/cpu-qom.h |6 ++
target-arm/cpu.c |1 +
target-arm/kvm32.c |1 +
target-arm/kvm64.c |1 +
4 files changed, 9 insertions(+)
diff --git a/target-arm/cpu
Introduce a common kvm_arm_vcpu_init() for doing KVM_ARM_VCPU_INIT
ioctl in KVM ARM and KVM ARM64. This also helps us factor-out few
common code lines from kvm_arch_init_vcpu() for KVM ARM/ARM64.
Signed-off-by: Pranavkumar Sawargaonkar
Signed-off-by: Anup Patel
---
target-arm/cpu-qom.h |3
We will be using linux/psci.h for KVM ARM/ARM64 hence add it to
linux header sync-up script.
Signed-off-by: Pranavkumar Sawargaonkar
Signed-off-by: Anup Patel
---
scripts/update-linux-headers.sh |3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/scripts/update-linux
: Pranavkumar Sawargaonkar
Signed-off-by: Anup Patel
Reviewed-by: Peter Maydell
---
kvm-all.c | 16
1 file changed, 16 insertions(+)
diff --git a/kvm-all.c b/kvm-all.c
index a343ede..f87c1d5 100644
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -1713,6 +1713,22 @@ int kvm_cpu_exec(CPUState
Syncup KVM related linux headers from linux-next tree using
scripts/update-linux-headers.sh.
Signed-off-by: Pranavkumar Sawargaonkar
Signed-off-by: Anup Patel
---
linux-headers/asm-arm/kvm.h | 10 +++--
linux-headers/asm-arm64/kvm.h | 10 +++--
linux-headers/asm-s390/kvm.h | 28
n
(http://www.spinics.net/lists/arm-kernel/msg319037.html)
- Handle KVM_EXIT_SYSTEM_EVENT in kvm-all.c:kvm_cpu_exec()
- Drop change in kvm_arm_get_host_cpu_features()
- Improve comments and description of kvm_arch_reset_vcpu() implementation
V1:
- Initial RFC patchset
Pranavkumar Sawargaonkar (8)
We will be using linux/psci.h for KVM ARM/ARM64 hence add it to
linux header sync-up script.
Signed-off-by: Pranavkumar Sawargaonkar
Signed-off-by: Anup Patel
---
scripts/update-linux-headers.sh |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/update-linux
: Pranavkumar Sawargaonkar
Signed-off-by: Anup Patel
---
kvm-all.c | 16
1 file changed, 16 insertions(+)
diff --git a/kvm-all.c b/kvm-all.c
index 5cb7f26..d038b46 100644
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -1724,6 +1724,22 @@ int kvm_cpu_exec(CPUState *cpu)
case
Syncup KVM related linux headers from linux-next tree using
scripts/update-linux-headers.sh.
Signed-off-by: Pranavkumar Sawargaonkar
Signed-off-by: Anup Patel
---
linux-headers/asm-arm/kvm.h | 10 +++--
linux-headers/asm-arm64/kvm.h | 10 +++--
linux-headers/asm-s390/kvm.h | 28
kvm_arch_init_vcpu() to enable KVM_ARM_VCPU_PSCI_0_2
feature for VCPU when KVM ARM/ARM64 has KVM_CAP_ARM_PSCI_0_2 capability.
Signed-off-by: Pranavkumar Sawargaonkar
Signed-off-by: Anup Patel
---
target-arm/kvm32.c |3 +++
target-arm/kvm64.c |3 +++
2 files changed, 6 insertions(+)
diff
To implement kvm_arch_reset_vcpu(), we simply re-init the VCPU
using kvm_arm_vcpu_init() so that all registers of VCPU are set
to their reset values by in-kernel KVM code.
Signed-off-by: Pranavkumar Sawargaonkar
Signed-off-by: Anup Patel
---
target-arm/kvm64.c |4
1 file changed, 4
Introduce a common kvm_arm_vcpu_init() for doing KVM_ARM_VCPU_INIT
ioctl in KVM ARM and KVM ARM64. This also helps us factor-out few
common code lines from kvm_arch_init_vcpu() for KVM ARM/ARM64.
Signed-off-by: Pranavkumar Sawargaonkar
Signed-off-by: Anup Patel
---
target-arm/cpu-qom.h |3
emulation PSCI v0.2 for KVM ARM/ARM64.
Signed-off-by: Pranavkumar Sawargaonkar
Signed-off-by: Anup Patel
---
hw/arm/virt.c |8 +++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index ea4f02d..64ee630 100644
--- a/hw/arm/virt.c
+++ b/hw/arm/virt.c
We require to check whether PSCI v0.2 capability is available or
not in hw/arm/virt.c such that it compiles for both KVM and TCG QEMU.
This patch adds PSCI v0.2 capability #define in target-arm/kvm-const.h
so that it is available for both KVM and TCG QEMU.
Signed-off-by: Pranavkumar Sawargaonkar
mments and description of kvm_arch_reset_vcpu() implementation
V1:
- Initial RFC patchset
Pranavkumar Sawargaonkar (8):
update-linux-headers.sh: Add psci.h to linux header sync-up script
linux-headers: Update KVM headers from linux-next tag next-20140508
kvm: Handle exit reason KVM_EXIT_SYSTEM_EVEN
Hi Rob, Peter,
On 5 May 2014 20:13, Peter Maydell wrote:
> On 5 May 2014 15:09, Rob Herring wrote:
>> On Mon, May 5, 2014 at 9:06 AM, Rob Herring wrote:
>>> This does not compile for me:
>>>
>>> CCaarch64-softmmu/hw/arm/virt.o
>>> hw/arm/virt.c: In function ‘create_fdt’:
>>> hw/arm/virt.c
Hi Peter,
On 5 May 2014 16:14, Peter Maydell wrote:
> On 5 May 2014 10:00, Pranavkumar Sawargaonkar wrote:
>> Introduce a common kvm_arm_vcpu_init() for doing KVM_ARM_VCPU_INIT
>> ioctl in KVM ARM and KVM ARM64. This also helps us factor-out few
>> common code lines fr
To implement kvm_arch_reset_vcpu(), we simply re-init the VCPU
using kvm_arm_vcpu_init() so that all registers of VCPU are set
to their reset values by in-kernel KVM code.
Signed-off-by: Pranavkumar Sawargaonkar
Signed-off-by: Anup Patel
---
target-arm/kvm64.c |4
1 file changed, 4
Introduce a common kvm_arm_vcpu_init() for doing KVM_ARM_VCPU_INIT
ioctl in KVM ARM and KVM ARM64. This also helps us factor-out few
common code lines from kvm_arch_init_vcpu() for KVM ARM/ARM64.
Signed-off-by: Pranavkumar Sawargaonkar
Signed-off-by: Anup Patel
---
target-arm/kvm.c | 23
kvm_arch_init_vcpu() to enable KVM_ARM_VCPU_PSCI_0_2
feature for VCPU when KVM ARM/ARM64 has KVM_CAP_ARM_PSCI_0_2 capability.
Signed-off-by: Pranavkumar Sawargaonkar
Signed-off-by: Anup Patel
---
target-arm/kvm32.c |5 -
target-arm/kvm64.c |5 -
2 files changed, 8 insertions(+), 2
emulation PSCI v0.2 for KVM ARM/ARM64.
Signed-off-by: Pranavkumar Sawargaonkar
Signed-off-by: Anup Patel
---
hw/arm/virt.c | 16 ++--
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index 2bbc931..e4ae8ba 100644
--- a/hw/arm/virt.c
+++ b/hw/arm
: Pranavkumar Sawargaonkar
Signed-off-by: Anup Patel
---
kvm-all.c | 16
1 file changed, 16 insertions(+)
diff --git a/kvm-all.c b/kvm-all.c
index 82a9119..9335c50 100644
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -1724,6 +1724,22 @@ int kvm_cpu_exec(CPUState *cpu)
case
Syncup KVM related linux headers from linux-3.16-rc1
Signed-off-by: Pranavkumar Sawargaonkar
Signed-off-by: Anup Patel
---
linux-headers/asm-arm/kvm.h | 10 +++--
linux-headers/asm-arm64/kvm.h | 10 +++--
linux-headers/linux/kvm.h | 27 -
linux-headers/linux/psci.h
Pranavkumar Sawargaonkar (6):
linux-headers: Update KVM headers from linux-3.16-rc1
kvm: Handle exit reason KVM_EXIT_SYSTEM_EVENT
target-arm: Enable KVM_ARM_VCPU_PSCI_0_2 feature when possible
hw/arm/virt: Use PSCI v0.2 compatible when kernel supports it
target-arm: Common kvm_arm_vcpu_init
Hi Peter,
On 28 April 2014 22:44, Peter Maydell wrote:
> On 10 April 2014 12:46, Pranavkumar Sawargaonkar
> wrote:
>> Recentely patches have been posted for in-kernel emulation of PSCI v0.2
>> http://www.spinics.net/lists/arm-kernel/msg305467.html
>> This patchset ad
Hi Rob,
On 26 April 2014 00:17, Rob Herring wrote:
> On Thu, Apr 10, 2014 at 6:46 AM, Pranavkumar Sawargaonkar
> wrote:
>> If we have in-kernel emulation of PSCI v0.2 for KVM ARM/ARM64 then
>> we enable PSCI v0.2 for each VCPU at the time of VCPU init hence we
>> n
Introduce a common kvm_arm_vcpu_init() for doing KVM_ARM_VCPU_INIT
ioctl in KVM ARM and KVM ARM64. This also helps us factor-out few
common code lines from kvm_arch_init_vcpu() for KVM ARM/ARM64.
Signed-off-by: Pranavkumar Sawargaonkar
Signed-off-by: Anup Patel
---
target-arm/kvm.c | 23
To implement kvm_arch_reset_vcpu(), we simply re-init the VCPU
using kvm_arm_vcpu_init() so that all registers of VCPU are set
to their reset values by in-kernel KVM code.
Signed-off-by: Pranavkumar Sawargaonkar
Signed-off-by: Anup Patel
---
target-arm/kvm64.c |4
1 file changed, 4
Provide QEMU PSCI v0.2 constants for non-KVM code; this will
allow us to avoid an #ifdef in boards which set up a PSCI v0.2
node in the device tree.
Signed-off-by: Pranavkumar Sawargaonkar
Signed-off-by: Anup Patel
---
target-arm/kvm-consts.h | 63
v0.2 for KVM ARM/ARM64.
Signed-off-by: Pranavkumar Sawargaonkar
Signed-off-by: Anup Patel
---
hw/arm/virt.c | 28 +++-
1 file changed, 23 insertions(+), 5 deletions(-)
diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index 2bbc931..cf6a774 100644
--- a/hw/arm/virt.c
+++ b/hw
in kvm-all.c:kvm_cpu_exec()
- Drop change in kvm_arm_get_host_cpu_features()
- Improve comments and description of kvm_arch_reset_vcpu() implementation
V1:
- Initial RFC patchset
Pranavkumar Sawargaonkar (7):
linux-headers: Update KVM headers from v3.15
kvm: Handle exit reason
: Pranavkumar Sawargaonkar
Signed-off-by: Anup Patel
---
kvm-all.c | 16
1 file changed, 16 insertions(+)
diff --git a/kvm-all.c b/kvm-all.c
index cd4111d..53edbc9 100644
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -1724,6 +1724,22 @@ int kvm_cpu_exec(CPUState *cpu)
case
kvm_arch_init_vcpu() to enable KVM_ARM_VCPU_PSCI_0_2
feature for VCPU when KVM ARM/ARM64 has KVM_CAP_ARM_PSCI_0_2 capability.
Signed-off-by: Pranavkumar Sawargaonkar
Signed-off-by: Anup Patel
---
target-arm/kvm32.c |5 -
target-arm/kvm64.c |5 -
2 files changed, 8 insertions(+), 2
Syncup KVM related linux headers from v3.15.
Signed-off-by: Pranavkumar Sawargaonkar
Signed-off-by: Anup Patel
---
linux-headers/asm-arm/kvm.h | 19 +-
linux-headers/asm-arm64/kvm.h | 21 +--
linux-headers/linux/kvm.h | 10 ++
linux-headers/linux/psci.h
On 1 April 2014 17:43, Peter Maydell wrote:
> On 1 April 2014 12:53, Pranavkumar Sawargaonkar
> wrote:
>> To implement kvm_arch_reset_vcpu(), we simply re-init the VCPU
>> using kvm_arch_init_vcpu() so that all registers of VCPU are set
>> to their reset valu
Hi Peter,
On 1 April 2014 17:46, Peter Maydell wrote:
> On 1 April 2014 12:53, Pranavkumar Sawargaonkar
> wrote:
>> Latest linux kernel supports in-kernel emulation of PSCI v0.2 but
>> to enable it we need to select KVM_ARM_VCPU_PSCI_0_2 feature using
>> KVM_ARM_VCPU_IN
Hi Rob/Mark,
On 1 April 2014 17:23, Pranavkumar Sawargaonkar wrote:
> If we have in-kernel emulation of PSCI v0.2 for KVM ARM/ARM64 then
> we enable PSCI v0.2 for each VCPU at the time of VCPU init hence we
> need to provide PSCI v0.2 function IDs via generated DTB.
>
> Thi
Provide QEMU PSCI v0.2 constants for non-KVM code; this will
allow us to avoid an #ifdef in boards which set up a PSCI v0.2
node in the device tree.
Signed-off-by: Pranavkumar Sawargaonkar
Signed-off-by: Anup Patel
---
target-arm/kvm-consts.h | 63
To implement kvm_arch_reset_vcpu(), we simply re-init the VCPU
using kvm_arch_init_vcpu() so that all registers of VCPU are set
to their reset values by in-kernel KVM code.
Signed-off-by: Pranavkumar Sawargaonkar
Signed-off-by: Anup Patel
---
target-arm/kvm64.c |4
1 file changed, 4
v0.2 for KVM ARM/ARM64.
Signed-off-by: Pranavkumar Sawargaonkar
Signed-off-by: Anup Patel
---
hw/arm/virt.c | 28 +++-
1 file changed, 23 insertions(+), 5 deletions(-)
diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index 2bbc931..cf6a774 100644
--- a/hw/arm/virt.c
+++ b/hw
Syncup KVM related linux headers from v3.14.
Signed-off-by: Pranavkumar Sawargaonkar
Signed-off-by: Anup Patel
---
linux-headers/asm-arm/kvm.h | 19 +++---
linux-headers/asm-arm64/kvm.h | 21
linux-headers/linux/kvm.h | 10
linux-headers/linux
kvm_arch_init_vcpu() to enable KVM_ARM_VCPU_PSCI_0_2
feature for VCPU when KVM ARM/ARM64 has KVM_CAP_ARM_PSCI_0_2 capability.
Signed-off-by: Pranavkumar Sawargaonkar
Signed-off-by: Anup Patel
---
target-arm/kvm32.c |5 -
target-arm/kvm64.c |5 -
2 files changed, 8 insertions(+), 2
(http://www.spinics.net/lists/arm-kernel/msg319037.html)
- Handle KVM_EXIT_SYSTEM_EVENT in kvm-all.c:kvm_cpu_exec()
- Drop change in kvm_arm_get_host_cpu_features()
- Improve comments and description of kvm_arch_reset_vcpu() implementation
V1:
- Initial RFC patchset
Pranavkumar Sawargaonkar (6
: Pranavkumar Sawargaonkar
Signed-off-by: Anup Patel
---
kvm-all.c | 16
1 file changed, 16 insertions(+)
diff --git a/kvm-all.c b/kvm-all.c
index cd4111d..53edbc9 100644
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -1724,6 +1724,22 @@ int kvm_cpu_exec(CPUState *cpu)
case
Hi Christoffer,
On 14 March 2014 09:21, Christoffer Dall wrote:
> On Thu, Feb 27, 2014 at 04:05:04PM +0530, Pranavkumar Sawargaonkar wrote:
>> Hi Peter,
>>
>> On 27 February 2014 15:23, Peter Maydell wrote:
>> > On 27 February 2014 06:51, Pranavkumar Sawargaonkar
Hi Christoffer,
On 14 March 2014 09:19, Christoffer Dall wrote:
> On Thu, Feb 27, 2014 at 12:21:07PM +0530, Pranavkumar Sawargaonkar wrote:
>> If we have in-kernel emulation of PSCI v0.2 for KVM ARM/ARM64 then
>> we enable PSCI v0.2 for each VCPU at the time of VCPU init henc
Hi Peter,
On 27 February 2014 15:23, Peter Maydell wrote:
> On 27 February 2014 06:51, Pranavkumar Sawargaonkar
> wrote:
>> We need to "Feed the kernel back its initial register state" using KVM
>> ioctls for KVM ARM64 (just like KVM ARM). This means we need to s
On 27 February 2014 12:21, Pranavkumar Sawargaonkar
wrote:
> We need to "Feed the kernel back its initial register state" using KVM
> ioctls for KVM ARM64 (just like KVM ARM). This means we need to save
> the "initial register state" in kvm_arch_init_vcpu() which is
On 27 February 2014 12:21, Pranavkumar Sawargaonkar
wrote:
> If we have in-kernel emulation of PSCI v0.2 for KVM ARM/ARM64 then
> we enable PSCI v0.2 for each VCPU at the time of VCPU init hence we
> need to provide PSCI v0.2 function IDs via generated DTB.
>
> This patch updates g
On 27 February 2014 12:21, Pranavkumar Sawargaonkar
wrote:
> Provide versions of the KVM PSCI v0.2 constants to non-KVM code;
> this will allow us to avoid an ifdef in boards which set up a
> PSCI v0.2 node in the device tree.
>
> Signed-off-by: Pranavkumar Sawargaonkar
> S
On 27 February 2014 12:21, Pranavkumar Sawargaonkar
wrote:
> Latest linux kernel supports in-kernel emulation of PSCI v0.2 but
> to enable it we need to select KVM_ARM_VCPU_PSCI_0_2 feature using
> KVM_ARM_VCPU_INIT ioctl.
>
> Also, we can use KVM_ARM_VCPU_PSCI_0_2 feature for
On 27 February 2014 12:21, Pranavkumar Sawargaonkar
wrote:
> In-kernel PSCI v0.2 emulation of KVM ARM/ARM64 forwards SYSTEM_OFF
> and SYSTEM_RESET function calls to QEMU using KVM_EXIT_SYSTEM_EVENT
> exit reason.
>
> This patch updates kvm_arch_handle_exit() to handle KVM_EXIT_SYST
On 27 February 2014 12:21, Pranavkumar Sawargaonkar
wrote:
> QEMU Aarch64 tries various target types in kvm_arm_get_host_cpu_features()
> to determine perferred VCPU target type and VCPU features.
>
> This patch adds target type KVM_ARM_TARGET_XGENE_POTENZA to cpus_t
On 27 February 2014 12:21, Pranavkumar Sawargaonkar
wrote:
> Syncup KVM related linux headers from v3.14-rc3.
>
> Signed-off-by: Pranavkumar Sawargaonkar
> Signed-off-by: Anup Patel
> ---
> linux-headers/asm-arm/kvm.h | 63 ++-
> li
On 27 February 2014 12:21, Pranavkumar Sawargaonkar
wrote:
> Recentely patches have been posted for in-kernel emulation of PSCI v0.2
> http://www.spinics.net/lists/arm-kernel/msg305467.html
> This patchset adds the QEMU side changes for providing PSCI v0.2 to VM.
>
> Pranavkumar
88 matches
Mail list logo