[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xen-cvs
Subject:    [Xen-changelog] [xen master] x86/libxc: fix usage of XEN_X86_EMU_ALL after VPCI addition
From:       patchbot () xen ! org
Date:       2018-03-27 0:54:35
Message-ID: E1f0csl-0000Oh-8O () xenbits ! xenproject ! org
[Download RAW message or body]

commit eabb83121226d5a6a5a68da3a913ac0b5bb1e0cf
Author:     Roger Pau Monne <roger.pau@citrix.com>
AuthorDate: Fri Mar 23 10:57:56 2018 +0000
Commit:     Wei Liu <wei.liu2@citrix.com>
CommitDate: Fri Mar 23 16:28:18 2018 +0000

    x86/libxc: fix usage of XEN_X86_EMU_ALL after VPCI addition
    
    HVM guest should be created with (XEN_X86_EMU_ALL &
    ~XEN_X86_EMU_VPCI). This is not an issue for xl/libxl because it
    already sets the correct emulation flags and doesn't pass a NULL
    xc_domain_configuration_t to xc_domain_create.
    
    Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
    Acked-by: Wei Liu <wei.liu2@citrix.com>
---
 tools/libxc/xc_domain.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/libxc/xc_domain.c b/tools/libxc/xc_domain.c
index ea3df1ef31..26b4b908b9 100644
--- a/tools/libxc/xc_domain.c
+++ b/tools/libxc/xc_domain.c
@@ -40,7 +40,7 @@ int xc_domain_create(xc_interface *xch, uint32_t ssidref,
 
 #if defined (__i386) || defined(__x86_64__)
         if ( flags & XEN_DOMCTL_CDF_hvm_guest )
-            lconfig.emulation_flags = XEN_X86_EMU_ALL;
+            lconfig.emulation_flags = (XEN_X86_EMU_ALL & ~XEN_X86_EMU_VPCI);
 #elif defined (__arm__) || defined(__aarch64__)
         lconfig.gic_version = XEN_DOMCTL_CONFIG_GIC_NATIVE;
         lconfig.nr_spis = 0;
--
generated by git-patchbot for /home/xen/git/xen.git#master


[Attachment #3 (text/plain)]

_______________________________________________
Xen-changelog mailing list
Xen-changelog@lists.xenproject.org
https://lists.xenproject.org/xen-changelog

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic