qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MemoryRegionOps callback sizes


From: Philippe Mathieu-Daudé
Subject: Re: MemoryRegionOps callback sizes
Date: Mon, 6 Apr 2020 18:11:21 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0

Hello,

On 4/6/20 5:49 PM, hgedek wrote:
Hello,

Im new to qemu and trying to update a project that developed before me ! I have a question, thanks for help.

Memory allocation is done using MMIO and its created 64 bits bars for it. And while accessing pages I wish to see 8 bytes at read / write callbacks but 4 bytes are used.

I wish to learn how to edit this ? How can we set MMIO will use 64 bits = not 32 bits ?

Is your guest using 64-bit accesses?

If the device only allow 64-bit, it should have:

static const MemoryRegionOps ops = {
    .valid.min_access_size = 8,
    .valid.max_access_size = 8,
    ...
};


( I hope I can explain = sorry )

Thanks





reply via email to

[Prev in Thread] Current Thread [Next in Thread]