diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2011-04-19 11:54:52 +1000 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2011-05-09 22:31:37 +0200 |
commit | b4a78527359a4540d84d4cdf629d01cbb262f698 (patch) | |
tree | 58a0c7b70416c69507a52f42d8c4f878d9587dea /hw/spapr_vio.h | |
parent | 5d73dd66e46f4aff784d15d0e869813dc4b1029a (diff) | |
download | qemu-b4a78527359a4540d84d4cdf629d01cbb262f698.zip qemu-b4a78527359a4540d84d4cdf629d01cbb262f698.tar.gz qemu-b4a78527359a4540d84d4cdf629d01cbb262f698.tar.bz2 |
Place pseries vty devices at addresses more similar to existing machines
Currently the qemu pseries machine numbers its virtual serial devices
from 0. However, existing pSeries machines running pHyp number them from
0x30000000.
In theory these indices are arbitrary, since everything necessary for the
kernel to find them is advertised in the device tree. However the debian
installer, at least, incorrectly looks for a device named vty@30... to
determine whether to use the hypervisor console.
Therefore this patch moves the numbers we use to match the existing pHyp
practice, in order to workaround broken userspace apps of this type.
Signed-off-by: David Gibson <dwg@au1.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'hw/spapr_vio.h')
-rw-r--r-- | hw/spapr_vio.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/spapr_vio.h b/hw/spapr_vio.h index 841b043..603a8c4 100644 --- a/hw/spapr_vio.h +++ b/hw/spapr_vio.h @@ -32,6 +32,8 @@ enum VIOsPAPR_TCEAccess { SPAPR_TCE_RW = 3, }; +#define SPAPR_VTY_BASE_ADDRESS 0x30000000 + struct VIOsPAPRDevice; typedef struct VIOsPAPR_RTCE { |