PPC: spapr: Rework VGA select logic
authorAlexander Graf <agraf@suse.de>
Tue, 14 Aug 2012 11:11:49 +0000 (13:11 +0200)
committerAlexander Graf <agraf@suse.de>
Wed, 15 Aug 2012 17:43:15 +0000 (19:43 +0200)
commit8c57b867b5d18b0d916797dfbac465b8aaa5bf5a
treea7ea1be9a2cef6ec7c825a91532ada44bd72df99
parenta5b71725c7067f6805eb30ff8e03dce3b6bf7a53
PPC: spapr: Rework VGA select logic

When selecting our VGA adapter, we want to:

  * fail completely when we can't satisfy the user's request
  * support -nographic where no VGA adapter should be spawned

This patch reworks the logic so we fulfill the two conditions above.

Signed-off-by: Alexander Graf <agraf@suse.de>
hw/spapr.c