]> xenbits.xensource.com Git - xen.git/commit
ioreq-server: on-demand creation of ioreq server
authorPaul Durrant <paul.durrant@citrix.com>
Mon, 12 May 2014 10:03:19 +0000 (12:03 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 12 May 2014 10:03:19 +0000 (12:03 +0200)
commita0731ccab237495919e1bde33fede65b94ec201a
treea7f5e656d39583a73e72cd40a6cd0d7f5e0e4053
parentbb6d5e155d8bc8f4d34928a81c39a7adcaf34987
ioreq-server: on-demand creation of ioreq server

This patch only creates the ioreq server when the legacy HVM parameters
are read (by an emulator).

A lock is introduced to protect access to the ioreq server by multiple
emulator/tool invocations should such an eventuality arise. The guest is
protected by creation of the ioreq server only being done whilst the
domain is paused.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/hvm.c
xen/include/asm-x86/hvm/domain.h