[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC PATCH V3 7/7] target-arm: Implement kvm_arch_reset_vcp
From: |
Pranavkumar Sawargaonkar |
Subject: |
[Qemu-devel] [RFC PATCH V3 7/7] target-arm: Implement kvm_arch_reset_vcpu() for KVM ARM64 |
Date: |
Thu, 10 Apr 2014 17:16:54 +0530 |
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 <address@hidden>
Signed-off-by: Anup Patel <address@hidden>
---
target-arm/kvm64.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/target-arm/kvm64.c b/target-arm/kvm64.c
index b0490dd..fc23da3 100644
--- a/target-arm/kvm64.c
+++ b/target-arm/kvm64.c
@@ -198,4 +198,8 @@ int kvm_arch_get_registers(CPUState *cs)
void kvm_arch_reset_vcpu(CPUState *cs)
{
+ /* Re-init VCPU so that all registers are set to
+ * their respective reset values.
+ */
+ kvm_arm_vcpu_init(cs, 0x0);
}
--
1.7.9.5
- [Qemu-devel] [RFC PATCH V3 1/7] linux-headers: Update KVM headers from v3.15, (continued)
- [Qemu-devel] [RFC PATCH V3 1/7] linux-headers: Update KVM headers from v3.15, Pranavkumar Sawargaonkar, 2014/04/10
- [Qemu-devel] [RFC PATCH V3 2/7] kvm: Handle exit reason KVM_EXIT_SYSTEM_EVENT, Pranavkumar Sawargaonkar, 2014/04/10
- [Qemu-devel] [RFC PATCH V3 3/7] target-arm: Enable KVM_ARM_VCPU_PSCI_0_2 feature when possible, Pranavkumar Sawargaonkar, 2014/04/10
- [Qemu-devel] [RFC PATCH V3 4/7] target-arm: Provide PSCI v0.2 constants to generic QEMU code, Pranavkumar Sawargaonkar, 2014/04/10
- [Qemu-devel] [RFC PATCH V3 5/7] hw/arm/virt: Use PSCI v0.2 function IDs when kernel supports it, Pranavkumar Sawargaonkar, 2014/04/10
- [Qemu-devel] [RFC PATCH V3 6/7] target-arm: Common kvm_arm_vcpu_init() for KVM ARM and KVM ARM64, Pranavkumar Sawargaonkar, 2014/04/10
- [Qemu-devel] [RFC PATCH V3 7/7] target-arm: Implement kvm_arch_reset_vcpu() for KVM ARM64,
Pranavkumar Sawargaonkar <=
- Re: [Qemu-devel] [RFC PATCH V3 0/7] PSCI v0.2 support for KVM ARM/ARM64, Peter Maydell, 2014/04/28