x86/pvh: Adjust dom0's starting state
diff mbox series

Message ID 20200210183921.23293-1-andrew.cooper3@citrix.com
State New
Headers show
Series
  • x86/pvh: Adjust dom0's starting state
Related show

Commit Message

Andrew Cooper Feb. 10, 2020, 6:39 p.m. UTC
Fixes: b25fb1a04e "xen/pvh: Fix segment selector ABI"
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
---
CC: Jan Beulich <JBeulich@suse.com>
CC: Wei Liu <wl@xen.org>
CC: Roger Pau Monné <roger.pau@citrix.com>
---
 xen/arch/x86/hvm/dom0_build.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Wei Liu Feb. 10, 2020, 8:09 p.m. UTC | #1
On Mon, Feb 10, 2020 at 06:39:21PM +0000, Andrew Cooper wrote:
> Fixes: b25fb1a04e "xen/pvh: Fix segment selector ABI"
> Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>

Reviewed-by: Wei Liu <wl@xen.org>
Jan Beulich Feb. 11, 2020, 9:20 a.m. UTC | #2
On 10.02.2020 21:09, Wei Liu wrote:
> On Mon, Feb 10, 2020 at 06:39:21PM +0000, Andrew Cooper wrote:
>> Fixes: b25fb1a04e "xen/pvh: Fix segment selector ABI"
>> Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
> 
> Reviewed-by: Wei Liu <wl@xen.org>

Acked-by: Jan Beulich <jbeulich@suse.com>

Patch
diff mbox series

diff --git a/xen/arch/x86/hvm/dom0_build.c b/xen/arch/x86/hvm/dom0_build.c
index 831325150b..380412151b 100644
--- a/xen/arch/x86/hvm/dom0_build.c
+++ b/xen/arch/x86/hvm/dom0_build.c
@@ -626,10 +626,12 @@  static int __init pvh_setup_cpus(struct domain *d, paddr_t entry,
         .cpu_regs.x86_32.cr0 = X86_CR0_PE | X86_CR0_ET,
         .cpu_regs.x86_32.cs_limit = ~0u,
         .cpu_regs.x86_32.ds_limit = ~0u,
+        .cpu_regs.x86_32.es_limit = ~0u,
         .cpu_regs.x86_32.ss_limit = ~0u,
         .cpu_regs.x86_32.tr_limit = 0x67,
         .cpu_regs.x86_32.cs_ar = 0xc9b,
         .cpu_regs.x86_32.ds_ar = 0xc93,
+        .cpu_regs.x86_32.es_ar = 0xc93,
         .cpu_regs.x86_32.ss_ar = 0xc93,
         .cpu_regs.x86_32.tr_ar = 0x8b,
     };