xen/pvshim: set correct domid value
authorRoger Pau Monne <roger.pau@citrix.com>
Thu, 11 Jan 2018 11:41:19 +0000 (11:41 +0000)
committerWei Liu <wei.liu2@citrix.com>
Tue, 16 Jan 2018 18:34:05 +0000 (18:34 +0000)
commit785190fa86512637e1b369cd53ac529a5441bceb
treede4535f8c982f112999aa4e4f45bdd3661507252
parent4be9107b34b0a766c34d7206d891372cf1b19aa3
xen/pvshim: set correct domid value

If domid is not provided by L0 set domid to 1 by default. Note that L0
not provinding the domid can cause trouble if the guest tries to use
it's domid instead of DOMID_SELF when performing hypercalls that are
forwarded to the L0 hypervisor.

Since the domain created is no longer the hardware domain add a hook
to the domain shutdown path in order to forward shutdown operations to
the L0 hypervisor.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Signed-off-by: Sergey Dyasli <sergey.dyasli@citrix.com>
xen/arch/x86/dom0_build.c
xen/arch/x86/guest/xen.c
xen/arch/x86/pv/shim.c
xen/arch/x86/setup.c
xen/common/domain.c
xen/include/asm-x86/guest/xen.h
xen/include/asm-x86/pv/shim.h