RE: Is there a good method to convert guest machine's user virtual address to qemu host's virtual address?

2021-07-14 Thread ckim
Hello Peter Maydell, Thank you for the confirmation. But with more thoughts, in our case, the accelerator (which is risc-v based and has special hardware for acceleration) connected to qemu virtual machine should access memory many times like a processor with many cores does. And the

RE: RHEL8 virt-manager QEMU 4.2.0 guest network no connection

2021-07-14 Thread Leek, Jim
I got the network to partially work. (DNS resolves and I can get to the host, which is all I wanted anyway.) The problem was that I needed to be able to run as a normal user. Which was a matter of uncommenting this line in file /etc/libvirt/libvirt.conf: uri_default = "qemu:///system"

Re: Is there a good method to convert guest machine's user virtual address to qemu host's virtual address?

2021-07-14 Thread Peter Maydell
On Wed, 14 Jul 2021 at 13:12, wrote: > > On second thought, I guess the application should convert the virtual address > to physical address (by reading the page table) and write the value to the > register. Yes. Generally models that emulate real devices will always operate on physical

Re: {Disarmed} Re: QEMU autosar question

2021-07-14 Thread Nerijus Baliūnas via
Most probably somewhere at https://wiki.autosar.org/ 2021-07-14 15:26, Evan Meyer via rašė: Attached are the lines of code that could be of use before running the code, I then would run runqemu qemux86 core-image-apd-devel nographic qemuparams="-net socket,mcast=MailScanner warning: numerical

RE: Is there a good method to convert guest machine's user virtual address to qemu host's virtual address?

2021-07-14 Thread ckim
On second thought, I guess the application should convert the virtual address to physical address (by reading the page table) and write the value to the register. Chan Kim From: c...@etri.re.kr Sent: Wednesday, July 14, 2021 7:01 PM To: 'qemu-discuss' Subject: Is there a good method to

switch RAM and ROM mode with memory_region_set_readonly

2021-07-14 Thread Hiroko Shimizu
Hello, I want to switch the memory read-only mode with memory_region_set_readonly() function for writing a value to memory under a specific condition. I checked that I could switch the mode using memory_region_set_readonly(), but I couldn't write a value to the memory region when the mode was

Re: using bit-field to define a qom register

2021-07-14 Thread Hiroko Shimizu
Thank you! I understand what you said and I could realize what I want to make. Best regards, Hiroko 2021年7月11日(日) 18:13 Peter Maydell : > On Sun, 11 Jul 2021 at 09:12, Hiroko Shimizu > wrote: > > > > >If you mean the MemoryRegionOps read and write functions, > > Yes, I mean that. I understand

Is there a good method to convert guest machine's user virtual address to qemu host's virtual address?

2021-07-14 Thread ckim
Hello experts, I can convert guest physical address to host virtual address using something like this. vms->ram_ptr = memory_region_get_ram_ptr(machine->ram); *host_virt_offset_p = (uint64_t)vms->ram_ptr - vms->memmap[AB21Q_MEM].base; By adding *host_virt_offset_p to the guest physical