* [Qemu-devel] [PATCH] [hack] tseg test
@ 2015-04-20 13:25 Gerd Hoffmann
0 siblings, 0 replies; only message in thread
From: Gerd Hoffmann @ 2015-04-20 13:25 UTC (permalink / raw)
To: qemu-devel; +Cc: pbonzini, lersek, Gerd Hoffmann, Michael S. Tsirkin
Put some unique content into tseg area
when locked down for easy testing.
---
hw/pci-host/q35.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/hw/pci-host/q35.c b/hw/pci-host/q35.c
index 7d21399..1b2698f 100644
--- a/hw/pci-host/q35.c
+++ b/hw/pci-host/q35.c
@@ -200,7 +200,8 @@ static const TypeInfo q35_host_info = {
static uint64_t tseg_blackhole_read(void *ptr, hwaddr reg, unsigned size)
{
- return 0xffffffff;
+ static const char msg[] = "No access to tseg for you. ";
+ return msg[reg%sizeof(msg)];
}
static void tseg_blackhole_write(void *opaque, hwaddr addr, uint64_t val,
@@ -215,8 +216,8 @@ static const MemoryRegionOps tseg_blackhole_ops = {
.endianness = DEVICE_NATIVE_ENDIAN,
.valid.min_access_size = 1,
.valid.max_access_size = 4,
- .impl.min_access_size = 4,
- .impl.max_access_size = 4,
+ .impl.min_access_size = 1,
+ .impl.max_access_size = 1,
.endianness = DEVICE_LITTLE_ENDIAN,
};
--
1.8.3.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-04-20 13:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-20 13:25 [Qemu-devel] [PATCH] [hack] tseg test Gerd Hoffmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).