]> xenbits.xensource.com Git - people/royger/xen.git/commit
oxenstored: save remote evtchn port, not local port
authorJonathan Davies <jonathan.davies@citrix.com>
Fri, 7 Apr 2017 13:27:20 +0000 (14:27 +0100)
committerWei Liu <wei.liu2@citrix.com>
Mon, 10 Apr 2017 13:46:25 +0000 (14:46 +0100)
commit27ce9d49d0a57d0bd18dcea483000bc041b55a3c
treeb9c0299827ad3f3bdafcb7e92ad040ed4dde06af
parent506114e9183de1640f3c2e5b66f4980b596164f7
oxenstored: save remote evtchn port, not local port

Previously, Domain.dump output the number of the local port
corresponding to each domain's event-channel. However, when oxenstored
exits, it closes /dev/xen/evtchn which causes the kernel to close the
local port (evtchn_release), so this port is no longer useful.

Instead, store the remote port. This can be used to reconnect the
event-channel by binding the original remote port to a fresh local port.

Indeed, the logic for parsing the stored state already expects a remote
port as it passes the parsed port number to Domain.make (via
Domains.create), which takes a remote port.

Signed-off-by: Jonathan Davies <jonathan.davies@citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Christian Lindig <christian.lindig@citrix.com>
Release-acked-by: Julien Grall <julien.grall@arm.com>
tools/ocaml/xenstored/domain.ml