summaryrefslogtreecommitdiffstats
path: root/drivers/lguest
diff options
context:
space:
mode:
authorMarc Zyngier2013-11-05 11:51:28 +0100
committerRusty Russell2013-11-07 02:43:04 +0100
commit4ae85370720156025e9cb873c13a0afb06ca1612 (patch)
tree3f2fc075e48cdfb64df2dd659a3acc656308f18a /drivers/lguest
parentvirtio_ring: adapt to notify() returning bool (diff)
downloadkernel-qcow2-linux-4ae85370720156025e9cb873c13a0afb06ca1612.tar.gz
kernel-qcow2-linux-4ae85370720156025e9cb873c13a0afb06ca1612.tar.xz
kernel-qcow2-linux-4ae85370720156025e9cb873c13a0afb06ca1612.zip
virtio: mmio: fix signature checking for BE guests
As virtio-mmio config registers are specified to be little-endian, using readl() to read the magic value and then memcmp() to check it fails on BE (as readl() has an implicit swab). Fix it by encoding the magic value as an integer instead of a string. Cc: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com> Acked-by: Pawel Moll <pawel.moll@arm.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/lguest')
0 files changed, 0 insertions, 0 deletions