qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* CVMSEG Emulation
@ 2022-12-08 15:08 Christopher Wrogg
  2022-12-08 21:54 ` Jiaxun Yang
  0 siblings, 1 reply; 7+ messages in thread
From: Christopher Wrogg @ 2022-12-08 15:08 UTC (permalink / raw)
  To: qemu-devel
  Cc: Richard Henderson, Jiaxun Yang, Aleksandar Rikalo, Aurelien Jarno,
	Philippe Mathieu-Daudé

[-- Attachment #1: Type: text/plain, Size: 557 bytes --]

<https://matrix.to/#/!xtcopKjjucUQThGiEn:matrix.org/$16705104253940lCHrT:matrix.org?via=matrix.org&via=matrix.im&via=matrix.alindner.org>
In userspace emulation how do I make a set of addresses always valid and
initialized to 0 even though the process does not map it in? In particular
I want to map the CVMSEG for Cavium qemu-mips64 and qemu-mipsn32. The
addresses would be 0xFFFFFFFFFFFF8000 - 0xFFFFFFFFFFFFBFFF. I've looked at
target_mmap but it can't handle addresses that large. The lack of an
emulated mmu for 64 bit guests is going to be a problem.

[-- Attachment #2: Type: text/html, Size: 735 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread
* CVMSEG Emulation
@ 2022-12-15  0:57 Christopher Wrogg
  0 siblings, 0 replies; 7+ messages in thread
From: Christopher Wrogg @ 2022-12-15  0:57 UTC (permalink / raw)
  To: BALATON Zoltan via
  Cc: Richard Henderson, Jiaxun Yang, Aleksandar Rikalo, Aurelien Jarno,
	Philippe Mathieu-Daudé

[-- Attachment #1: Type: text/plain, Size: 585 bytes --]

Was wondering if there was a follow up to this. Just a recap but I am
trying to map 0xFFFFFFFFFFFF8000 - 0xFFFFFFFFFFFFBFFF into a userspace
process's virtual address space. It falls squarely in KSEG3.

Here is what I have tried

Attempt 1
    What I did:
        #undef TARGET_VIRT_ADDR_SPACE_BITS and #define
TARGET_VIRT_ADDR_SPACE_BITS 64
    The Result:
        perror reports "Cannot allocate memory"
Attempt 2:
    What I did:
        TARGET_VIRT_ADDR_SPACE_BITS for me is 48 on amd64 so I masked by
0xFFFFFFFFFFFF
    The Result:
        perror reports "Cannot allocate memory"

[-- Attachment #2: Type: text/html, Size: 793 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-12-15  0:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-08 15:08 CVMSEG Emulation Christopher Wrogg
2022-12-08 21:54 ` Jiaxun Yang
2022-12-09 17:44   ` Christopher Wrogg
2022-12-09 21:01     ` Jiaxun Yang
2022-12-12 12:02       ` Peter Maydell
2022-12-12 14:17         ` Christopher Wrogg
  -- strict thread matches above, loose matches on Subject: below --
2022-12-15  0:57 Christopher Wrogg

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).