diff mbox

[1/2] KVM: Add KVM_EXIT_RESET to user space API header

Message ID 1385394599-15439-2-git-send-email-anup.patel@linaro.org
State New
Headers show

Commit Message

Anup Patel Nov. 25, 2013, 3:49 p.m. UTC
Currently, we don't have an exit reason for VM reset emulation
in user space hence this patch adds exit reason KVM_EXIT_RESET
for this purpose.

This newly added KVM_EXIT_RESET will be used by KVM arm/arm64
in-kernel PSCI support to reset VMs.

Signed-off-by: Anup Patel <anup.patel@linaro.org>
Signed-off-by: Pranavkumar Sawargaonkar <pranavkumar@linaro.org>
---
 include/uapi/linux/kvm.h |    1 +
 1 file changed, 1 insertion(+)

Comments

Christoffer Dall Dec. 9, 2013, 10:52 p.m. UTC | #1
On Mon, Nov 25, 2013 at 09:19:58PM +0530, Anup Patel wrote:
> Currently, we don't have an exit reason for VM reset emulation
> in user space hence this patch adds exit reason KVM_EXIT_RESET
> for this purpose.
> 
> This newly added KVM_EXIT_RESET will be used by KVM arm/arm64
> in-kernel PSCI support to reset VMs.

Acked-by: Christoffer Dall <christoffer.dall@linaro.org>

> 
> Signed-off-by: Anup Patel <anup.patel@linaro.org>
> Signed-off-by: Pranavkumar Sawargaonkar <pranavkumar@linaro.org>
> ---
>  include/uapi/linux/kvm.h |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/include/uapi/linux/kvm.h b/include/uapi/linux/kvm.h
> index 902f124..64a04cc 100644
> --- a/include/uapi/linux/kvm.h
> +++ b/include/uapi/linux/kvm.h
> @@ -171,6 +171,7 @@ struct kvm_pit_config {
>  #define KVM_EXIT_WATCHDOG         21
>  #define KVM_EXIT_S390_TSCH        22
>  #define KVM_EXIT_EPR              23
> +#define KVM_EXIT_RESET            24
>  
>  /* For KVM_EXIT_INTERNAL_ERROR */
>  /* Emulate instruction failed. */
> -- 
> 1.7.9.5
>
diff mbox

Patch

diff --git a/include/uapi/linux/kvm.h b/include/uapi/linux/kvm.h
index 902f124..64a04cc 100644
--- a/include/uapi/linux/kvm.h
+++ b/include/uapi/linux/kvm.h
@@ -171,6 +171,7 @@  struct kvm_pit_config {
 #define KVM_EXIT_WATCHDOG         21
 #define KVM_EXIT_S390_TSCH        22
 #define KVM_EXIT_EPR              23
+#define KVM_EXIT_RESET            24
 
 /* For KVM_EXIT_INTERNAL_ERROR */
 /* Emulate instruction failed. */