Move hardcoded initialization of xen-platform device.
commit39ae4972390f78f8891a355545c56d20a9fb7770
authorPaul Durrant <paul.durrant@citrix.com>
Tue, 25 Jun 2013 11:46:44 +0000 (25 11:46 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Tue, 25 Jun 2013 12:00:53 +0000 (25 12:00 +0000)
tree6f0c9e83734382332ac0769927a68d1d7a5c963b
parenta97d6fe6fbb97630d77253d20bdce78f76d01850
Move hardcoded initialization of xen-platform device.

Creation of the xen-platform device is currently hardcoded into machine
type pc's initialization code, guarded by a test for the whether the xen
accelerator is enabled. This patch moves the creation of xen-platform into
the initialization code of the xenfv machine type. This maintains backwards
compatibility for that machine type but allows more flexibility if another
machine type is used with Xen HVM domains.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
hw/i386/pc_piix.c