When resuming, the guest needs to check whether the port has changed. HVM
guests use this parameter to get the port number.
(We can't always use xenstore where this value is also written: for example
on Linux the console is resumed very early, before the store is up).
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
HVM_PARAM_PAE_ENABLED, pae))
|| (frc = xc_hvm_param_set(xch, dom,
HVM_PARAM_STORE_EVTCHN,
- store_evtchn)) )
+ store_evtchn))
+ || (frc = xc_hvm_param_set(xch, dom,
+ HVM_PARAM_CONSOLE_EVTCHN,
+ console_evtchn)) )
{
PERROR("error setting HVM params: %i", frc);
goto out;