p***@xen.org
2018-11-14 18:55:25 UTC
commit 51c475f4b8ebfae4c9323c53b5d9c5ebf3000091
Author: Sergey Dyasli <***@citrix.com>
AuthorDate: Wed Nov 14 10:23:16 2018 +0000
Commit: Andrew Cooper <***@citrix.com>
CommitDate: Wed Nov 14 18:42:48 2018 +0000
x86/nestedhvm: init nv_vvmcxaddr in hvm_vcpu_initialise()
This allows to safely use nestedhvm functions that rely on the values
inside struct nestedvcpu independently of the nested virtualisation
(HVM_PARAM_NESTEDHVM) status of a domain.
Suggested-by: Andrew Cooper <***@citrix.com>
Signed-off-by: Sergey Dyasli <***@citrix.com>
Acked-by: Jan Beulich <***@suse.com>
---
xen/arch/x86/hvm/hvm.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c
index 5d263c4090..c0a3db5858 100644
--- a/xen/arch/x86/hvm/hvm.c
+++ b/xen/arch/x86/hvm/hvm.c
@@ -1516,6 +1516,8 @@ int hvm_vcpu_initialise(struct vcpu *v)
if ( rc != 0 )
goto fail4;
+ vcpu_nestedhvm(v).nv_vvmcxaddr = INVALID_PADDR;
+
if ( nestedhvm_enabled(d)
&& (rc = nestedhvm_vcpu_initialise(v)) < 0 ) /* teardown: nestedhvm_vcpu_destroy */
goto fail5;
--
generated by git-patchbot for /home/xen/git/xen.git#staging
Author: Sergey Dyasli <***@citrix.com>
AuthorDate: Wed Nov 14 10:23:16 2018 +0000
Commit: Andrew Cooper <***@citrix.com>
CommitDate: Wed Nov 14 18:42:48 2018 +0000
x86/nestedhvm: init nv_vvmcxaddr in hvm_vcpu_initialise()
This allows to safely use nestedhvm functions that rely on the values
inside struct nestedvcpu independently of the nested virtualisation
(HVM_PARAM_NESTEDHVM) status of a domain.
Suggested-by: Andrew Cooper <***@citrix.com>
Signed-off-by: Sergey Dyasli <***@citrix.com>
Acked-by: Jan Beulich <***@suse.com>
---
xen/arch/x86/hvm/hvm.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c
index 5d263c4090..c0a3db5858 100644
--- a/xen/arch/x86/hvm/hvm.c
+++ b/xen/arch/x86/hvm/hvm.c
@@ -1516,6 +1516,8 @@ int hvm_vcpu_initialise(struct vcpu *v)
if ( rc != 0 )
goto fail4;
+ vcpu_nestedhvm(v).nv_vvmcxaddr = INVALID_PADDR;
+
if ( nestedhvm_enabled(d)
&& (rc = nestedhvm_vcpu_initialise(v)) < 0 ) /* teardown: nestedhvm_vcpu_destroy */
goto fail5;
--
generated by git-patchbot for /home/xen/git/xen.git#staging