Re: QEMU emulating ARM Neoverse N1 unexpectectly emulates `retaa`

2025-06-16 Thread Alex Bennée
Peter Maydell writes: > On Mon, 16 Jun 2025 at 11:02, Alex Bennée wrote: >> The code just does: >> >> static bool trans_RETA(DisasContext *s, arg_reta *a) >> { >> TCGv_i64 dst; >> >> dst = auth_branch_target(s, cpu_reg(s, 30), cpu_

Re: QEMU emulating ARM Neoverse N1 unexpectectly emulates `retaa`

2025-06-16 Thread Alex Bennée
orrect response if no key is enabled is to return the address as is unmolested. Which makes sense as you want PAuth code to be run-able unaltered on systems without it. > > This might be a bug, but why are you compiling for armv8.5 and > then trying to run the code on a CPU type that isn't armv8.5 > in the first place? > > thanks > -- PMM -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: QEMU plugin past, present and future examples

2024-06-12 Thread Alex Bennée
able in the archive/patchew should anyone want to pick it up afterwards. > > I will try to get a repo in github.com/microsoft/ but I do not know what is > involved. > > Robert Henry > robhe...@microsoft.com > rrh.he...@gmail.com > https://github.com/robertHenry6bev -- Alex Bennée Virtualisation Tech Lead @ Linaro

Emulating ast2600

2024-06-06 Thread Alex Povarski
Hi all! I tried to emulate BMC firmware for SYS-110P-WTR (Here is a link to download the bundle ). Does QEMU 9.0.0. support this version, or it's too fresh (BMC has been updated on march 23d)? I hope that I do

Re: Why does the vmovdqu works for passthrough device but crashes for emulated device with "illegal operand" error (in x86_64 QEMU, -accel = kvm) ?

2024-03-04 Thread Alex Williamson
lt, but didn't work correctly relative to MMIO space either. So I also wouldn't rule out that the program isn't inherently misbehaving by using memcpy() and thereby ignoring the nature of the device MMIO access semantics. Thanks, Alex [1]https://bugs.launchpad.net/qemu/+bug/1384892

Re: Usage of vfio-pci without KVM.

2023-09-12 Thread Alex Williamson
1GB so using 2GB for the VM memory size would avoid the issue. Understood that this isn't a very practical solution, but neither is the original problem of needing to assign a high performance I/O device to an emulated VM. Support for such configurations is not a high priority. Thanks, Alex

Re: Usage of vfio-pci without KVM.

2023-09-12 Thread Alex Williamson
rted with cross architecture? It does, but reserved address ranges need to be honored. x86 has a reserved range at 0xfee0 for MSI mapping, so the VM address space needs to be such that it avoids trying to place mappings there. Thanks, Alex

Re: How can I compile just the TCG plugins?

2023-08-15 Thread Alex Bennée
ask them to > recompile all of QEMU's codebase just to access one single plugin. > > So my question is: can I compile just the plugins, so that I can link > against them? Yes. "make plugins" will build them. Assuming the QEMU is new enough to support plugins and ther

Re: No print info when starrting qemu-system-aarch64

2023-06-22 Thread Alex Bennée
or > qemu tools ? Probably depends on at what point the kernel learnt about newer cortex processors. Does the baseline -cpu cortex-a57 also fail the same way? > Thank you so much. > > BestRegards, > Rex -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: How to get PID in tcg plugin

2023-03-30 Thread Alex Bennée
s and fish out: CPUState *cpu = current_cpu; and from there you can get to CPUArchState/env and grab the register value you want from it. Obviously this would not be up-streamable but would at least allow you to experiment locally. -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: debugging guest os running atop of eqmu+kvm

2023-03-30 Thread Alex Bennée
m left with a bug in the os, I assume that I'm not the first one > encountering this issue, so I'd like to know if there are > recommendation what to nable in guest? > I can rebuild the system entirely and change anything I want in the > kernel. the guest kernel is 6.1.14 H

Re: only apply tcg plugin in a certain process in system mode

2023-03-30 Thread Alex Bennée
ing qemu user mode then plugin callbacks are in the same process context as the guest code so you could simply call getpid() or equivalent. > > - syheliel -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: How to get PID in tcg plugin

2023-03-30 Thread Alex Bennée
access support you could use something like the CONTEXTIDR but that is still WIP. -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: TCG plugin : problem with call back in SW RISCV instructions

2023-03-30 Thread Alex Bennée
> also others. (cf. log.txt line 518) I can't see the log. Are you using an existing plugin or one you've written yourself? > > I think the call back is not called only when sw instruction is executed. > > Do you have any ideas to fix this problem? > > Thanks > >

Re: Question about tracking istructions with TCG plugin

2023-03-30 Thread Alex Bennée
ating. > > So I wanted to hear some opinions about this. Do you think the mistake > I'm doing lies behind Qemu itself, the plugin, or the system I'm > emulating? > > Thank you for your time, regards, > Antonio -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: raspi3b - Device Tree (FDT) load address

2023-03-30 Thread Alex Bennée
loader,file=linux-5.10.155/arch/arm64/boot/Image,addr=0x9 I can't see the dtb in your command line. > > 'myhypervisor.elf' is compiled to load at the address 0x8. In my case, > raspi3b boots into EL3. > > Thanks a lot, > Little -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: dropping 32-bit host support

2023-03-17 Thread Alex Bennée
have already made some efforts towards this during the 8.0 cycle however fundamentally the reason our test matrix is so wide is because we are supporting a very wide range of host architectures, operating systems and build configurations. -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: TCG plugin : problem with call back in SW RISCV instructions

2023-02-07 Thread Alex Bennée
of the execlog plugin that is in contrib/plugins? > > Thanks > > Thaddée BRICOUT > > [4. InsnCategory-riscv.h --- text/plain; InsnCategory-riscv.h]... > > [5. log.txt --- text/plain; log.txt]... > > [6. plugin_test.c --- text/plain; plugin_test.c]... -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: Troubleshooting high loads on host

2023-02-06 Thread Alex Strasheim
I never figured out what was going on with my high loads, but the problem seems to have cleared itself on its own. My theory is that there was a race condition introduced in version 6.1 of the kernel that got fixed in 6.1.9. On Sun, Jan 29, 2023 at 11:12 AM Alex Strasheim wrote: > I'

Troubleshooting high loads on host

2023-01-29 Thread Alex Strasheim
I've been running Qemu on Fedora for years without any problems. But lately I've been seeing very high loads from the qemu-system-x86 process on my host. It happens with both Linux and Windows guests. When the load is high the guest is unusable -- the mouse won't track on the guest's desktop, th

Re: Help: While running an Anrdoid Emulator and connecting USB I get Error 11

2022-11-04 Thread Alex Bennée
le. > Emulator keeps running but the emulator refuses > to recognize the connected device. This is a downstream fork of QEMU, you would be better off asking the owners of that fork what might be going wrong. -- Alex Bennée

Re: Getting host forwarding information using QMP or other means

2022-10-19 Thread Alex Bennée
ossible? I only found > "netdev_add" and "netdev_del", but no "query-netdevs" or something > like that in the docs. > > If QMP does not allow this, is there another way to get the port? The HMP offers "info usernet" which is used by the tests. It does

Re: If your networking is failing after updating to the latest git version of QEMU...

2022-10-03 Thread Alex Bennée
Peter Maydell writes: > On Mon, 3 Oct 2022 at 10:09, Alex Bennée wrote: >> >> >> Thomas Huth writes: >> >> > On 29/09/2022 04.32, Jason Wang wrote: >> >> On Thu, Sep 29, 2022 at 1:06 AM Philippe Mathieu-Daudé >> >> wrote: >

Re: If your networking is failing after updating to the latest git version of QEMU...

2022-10-03 Thread Alex Bennée
nless the user explicitly calls --disable-slirp? > > But the error message is not very helpful. It should rather say > something like (partly suggested by Daniel in IRC yesterday already): > > Type 'user' is not a supported netdev backend by this QEMU build. > Please check the spelling or whether it has been enabled at > compilation time. > > ... or something like this. > > Someone interested to write a patch? > > Thomas -- Alex Bennée

Re: Does QEMU TCG mode support running KVM inside the VM?

2022-08-04 Thread Alex Bennée
on is overloaded. In TCG world it selects a processor to emulate, in KVM (et all) world it filters the host CPU features visible to the guest. > Best, > Kaifeng -- Alex Bennée

Re: how to prevent automatic dtb load?

2022-08-04 Thread Alex Bennée
0 - > 0x8994) > > dtb (addresses 0x8000 - 0x8010) > > make: *** [Makefile.qemu:22: run_uboot] Error 1 > > I tried setting skip_dtb_autoload to true in my machine to no avail. > > How can I avoid automatic dtb load? > > Thanks in advance. > > Chan Kim -- Alex Bennée

Re: Software Safety Impact in Qemu

2022-07-07 Thread Alex Bennée
ild of QEMU from a 3rd party they should talk to them. -- Alex Bennée

Re: Unable to access init.text section of the Linux Kernel when debugging with GDB using kvm

2022-07-04 Thread Alex Bennée
st to be able to access memory > located in the .init.text section? If some fixes are needed I'll be > more than happy to help. Could it be address space randomisation having an effect? I usually turn it off when debugging kernels although I believe there are runes for gdb once you know the correct base address. -- Alex Bennée

API to change the vendor of IDE disk

2022-07-01 Thread Alex
Dear Qemu Genius This is zaifeng (wzf_develo...@foxmail.com) (WeChat ID: QemuKVM). Yes, I am a cloud engineer. (๑•̀ㅂ•́)و✧ May I ask you some questions about Qemu? Here is the problem: If you use IDE disk on a Windows VM, "QEMU HARDDISK" could be found from devi

Re: Recommended features to enable after --without-default-features?

2022-07-01 Thread Alex Bennée
/default.mk and use --with-devices-x86_64=/path/to/mk which only for example contains CONFIG_MICROVM=y. However these are both considered expert options for those familiar with how QEMU is put together. > > Thanks, > //anders -- Alex Bennée

Re: QEMU-KVM Hardware Breakpoint Handling

2022-07-01 Thread Alex Bennée
> its normal execution. How would I be able to implement this? Any > pointers would be appreciated. > > Thank you very much for all your help. > > Best Regards, > Arnabjyoti Kalita -- Alex Bennée

Re: Software Safety Impact in Qemu

2022-07-01 Thread Alex Bennée
ons specific > which is FuSa certified ? > > Regards > Asif -- Alex Bennée

Re: Enabling a Plugin during Execution

2022-07-01 Thread Alex Bennée
. Currently the cache plugin doesn't stop itself until the guest exists but you could add something to it to finish after a certain number of instructions have been executed. > > Thanks, > Conan -- Alex Bennée

Re: QEMU Plugins to monitor VM state changes

2022-07-01 Thread Alex Bennée
e guest. What are you trying to achieve? > > Thank you for you help. -- Alex Bennée

Re: make coverage-html failed with no rule found

2022-05-20 Thread Alex Bennée
de for non host architectures. What areas where you interested in? On Fri, 20 May 2022, 01:38 Jiatong Shen, wrote: > Thank you.. btw the result shows many of lines of codes does not get > covered. Am I doing something wrong? > > Best, > Norman > > On Fri, May 20, 2022

Re: make coverage-html failed with no rule found

2022-05-19 Thread Alex Bennée
EMU you're trying to do this on. > Is this with the current git ? > > I expect that the coverage tests have broken at some point; we > don't really use them in practice I think. > > Alex, did you ever look at this, or am I misremembering? > > thanks > -- PMM -- Alex Bennée

Re: Question About Qemu > Hackintosh

2022-01-11 Thread Alex Bennée
but I’m in fear that it’ll > outdate eventually and not be any use to me. Please email me back, when you > get the chance. -- Alex Bennée

Re: Modification to single Threaded Multi-Core emulation in TCG

2022-01-11 Thread Alex Bennée
original TCG execution driver to change. > > Best Regards, > Arnabjyoti Kalita -- Alex Bennée

Re: spin loop 100x faster in user mode (CPL=3) than superuser (CPL=0)?

2021-11-12 Thread Alex Bennée
Alex Bennée writes: > Garrick Toubassi writes: > >> I went ahead and created a short repro case which can be found at >> https://github.com/gtoubassi/qemu-spinrepro. Would appreciate >> thoughts from anyone or guidance on how to debug. > > Well something wei

Re: Logging program execution artifacts in TCG

2021-11-12 Thread Alex Bennée
, "add x2, x0, x1, lsr #27" 0, 0x400027d0, 0xffe0, "adrp x0, #0x40201000" 0, 0x400027d4, 0xb2400401, "orr x1, x0, #3" 0, 0x400027d8, 0xf941, "str x1, [x2]", store, 0x4028, RAM 0, 0x400027dc, 0x58000625, "ldr x5, #0x400028a0", load, 0x400028a0, RAM ... > > Thank you very much. > > Best Regards, > Arnabjyoti Kalita -- Alex Bennée

Re: Starting raspi3 machine at EL2 or EL3

2021-11-12 Thread Alex Bennée
level. Currently only the virt board supports the "virtualization" and "secure" machine properties that allow a kernel to be directly booted at the elevated exception levels. > > Thanks! > > Cheers, > Rodolphe. -- Alex Bennée

[no subject]

2021-11-12 Thread Alex Bennée
; might overcome this limitation, but it would be > better if more than 8 cores was supported directly. > > Best, > Mark > > Mark Wyse > pronouns: he/him/his > PhD Student > Paul G. Allen School of Computer Science & Engineering > University of Washington -- Alex Bennée

Re: Using QEMU for running RISC-V programs

2021-11-12 Thread Alex Bennée
suming you just want to run userspace code it's as simple as: ./qemu-riscv32 although you might want to setup binfmt_misc to automatically run your riscv32 binaries. -- Alex Bennée

Re: spin loop 100x faster in user mode (CPL=3) than superuser (CPL=0)?

2021-11-12 Thread Alex Bennée
; I can package up a reproducible case if it's helpful but wanted to see if > there is something obvious I am missing in terms of expected > behavior before doing that. > > Thanks! > > gt -- Alex Bennée

Re: Recording virtual memory addresses made by the Guest

2021-11-12 Thread Alex Bennée
e to have all the latest facilities and fixes. > > Thank you very much. > > Best Regards, > Arnabjyoti Kalita -- Alex Bennée

Re: I want to know how to use more CPUs and it is possible in newer version ?

2021-10-19 Thread Alex Bennée
omatically selects single-threaded round-robin emulation. On the command line you can force --accel tcg,thread=multi but it will complain about it and it's likely you get weird errors in your guest. -- Alex Bennée

Re: How to realize multi-threading or multi-process for QOM

2021-10-19 Thread Alex Bennée
the only device that currently supports running the emulation in a separate process. I'd start looking at that. > > Best regard, > Hiroko -- Alex Bennée

Re: Range of vcpu_index to plugin callbacks

2021-09-21 Thread Alex Bennée
CPUs. It's more this reason the recently added cache modelling plugin does vcpu_index % cores to bound the simulated cache the thread affects. > > Regards, > > Phil. -- Alex Bennée

Re: Problem with init debugging under QEMU ARM

2021-09-17 Thread Alex Bennée
.word 0x0002be92 > 1680: ee80.word 0xee80 > > The r1 gets the 0xee80 (negative offset) value. It is then added to > pc and used to calculate r2. > > For working code (aforementioned patch reverted) - there are NO such > large values (like aforementioned 0xee80). The arithmetic is done > on > >1690: 0020.word 0x0020 >1694: 0002be7e.word 0x0002be7e > > which seems to work. > > Maybe I'm missing some flag when I do start qemu-system-arm? > > Thanks in advance for help and hints. -- Alex Bennée

Re: Difficulties to access guest memory in TCG plugins

2021-06-24 Thread Alex Bennée
Philippe Mathieu-Daudé writes: > Cc'ing the maintainer: Alex. > > On 6/23/21 5:08 PM, Kevin Mambu wrote: >> Hi, everyone, >> I need to put in place a plugin which is able to modify memory for a >> specific project, and until now I managed to do so using &

Problem with HAX on Windows

2021-04-14 Thread Alex Casanova
Hello I have a problem with HAX, i installed it but when trying to execute the virtual machine I get an error Ignoring ROMD region 0x0... and VCPU shutdown request I saw that is related to OVMF but I have no idea what i can do to use accel in my windows 10 Please help!

Re: How to start an armv8 machine in EL3?

2021-03-03 Thread Alex Bennée
>> Sent: Wednesday, March 3, 2021 11:04 PM >> To: 'Alex Bennée' >> Cc: 'qemu-discuss@nongnu.org' >> Subject: RE: How to start an armv8 machine in EL3? >> >> Hi Alex Bennée, >> >> Sorry, machine ab21q is just the copy of machin

Re: How to start an armv8 machine in EL3?

2021-03-03 Thread Alex Bennée
c...@etri.re.kr writes: > Hi Alex Bennée, > > Sorry, machine ab21q is just the copy of machine virt. > I found the pflash.img contained all zero in the beginning so it cause > invalid instruction trap. > (thanks for the -d int,exec,in_asm option, I have to first learn mor

Re: How to start an armv8 machine in EL3?

2021-03-03 Thread Alex Bennée
c...@etri.re.kr writes: > Hello Alex Bennée, > > Thank you for the help! > I didn't know "-kernel xxx.elf" method makes it start at EL1 by the loader > stub, > and doing "--machine virtualization=on" makes it start at EL2. I checked > these us

Re: How to start an armv8 machine in EL3?

2021-03-03 Thread Alex Bennée
l sim.), what > should I do? Generally as only firmware deals with EL3 you would have it running on some sort of flash device which the model would boot to directly in EL3 rather than running the stub loader we have for the kernel. For example to load the EDK firmware you would have: -drive

Re: Is ARM Cortex-A55 CPU supported on QEMU on some branch?

2021-03-03 Thread Alex Bennée
C ITS emulation. From there on the aim is to add models for Neoverse N1/V1 in future releases. If you want to help with test and review I can ask the various authors to Cc you on patch sets. -- Alex Bennée

Re: How to make a VM guest look like just another metal machine on my LAN?

2021-03-03 Thread Alex Bennée
>> iface lo inet loopback >> >> auto eth0 >> allow-hotplug eth0 >> >> auto tap0 >> iface tap0 ifacem manual >> vde-switch -t tap0 >> >> auto br0 inet static >> bridge-ports tap0 >> address 192.168.0.60 >> netmask 255.255.255.0 >> = >> >> When, on the *host*, I run my instantiations script to create a guest >> VM, the following is output to the terminal: >> >> = >> [root@mydesk qemu_images]# ./runbeowulf.sh >> WARNING: Image format was not specified for >> '/scratch/qemu_images/beowulf.disk' and probing guessed raw. >> Automatically detecting the format is dangerous for raw images, write >> operations on block 0 will be restricted. Specify the 'raw' format >> explicitly to remove the restrictions. qemu-system-x86_64: warning: >> netdev mybridge0 has no peer >> = >> >> After that, my Devuan guest VM appears, to which I log in and run a >> terminal. IP addresses are 192.168.0.15 for the guest VM itself, and >> 192.168.0.2 (my metal host) for the default route. >> >> The VM guest can lynx to my nginx server on 192.168.0.2, and to any >> HTML page on the Internet, but cannot lynx to my printer at >> 192.168.0.13 or my metal cable modem at 192.168.0.1. From my metal >> desktop (which runs the guest VM) at 192.168.0.2 I cannot ssh to >> slitt@192.168.0.15: >> >> = >> [slitt@mydesk qemu]$ ssh slitt@192.168.0.15 >> ssh: connect to host 192.168.0.15 port 22: No route to host >> [slitt@mydesk qemu]$ >> = >> >> I'm pretty sure "no route to host" means this isn't caused by a >> firewall problem, although once I fix the routing thing, that might >> unmask a further firewall problem. >> >> In other words, my VM guest is in no way a peer of the various metal >> hosts on my 192.168.0.0/24 physical Ethernet network. >> >> If anybody has any words of wisdom, and can identify whether each >> wisdom word applies to the metal host or the guest VM, I'd love to hear >> them. I could also use info on what the "id=" should be, and how to >> narrow down and diagnose a "has no peer" warning. >> >> Thanks, >> >> SteveT >> >> Steve Litt >> Autumn 2020 featured book: Thriving in Tough Times >> http://www.troubleshooters.com/thrive >> >> -- Alex Bennée

Re: Hello I am a user

2021-03-03 Thread Alex Bennée
tml Was there any particular area you are interested in? -- Alex Bennée

Re: QEMU Clock record and replay

2021-02-26 Thread Alex Bennée
Pavel Dovgalyuk writes: > On 25.02.2021 18:43, Philippe Mathieu-Daudé wrote: >> Cc'ing Pavel/Alex. >> >> On 2/25/21 4:09 PM, Arnabjyoti Kalita wrote: >>> Hello all, >>> >>> I am trying to understand how the clock values are recorded and re

Re: Possible GPL violation on Mac App Store

2021-02-25 Thread Alex Bennée
down compliance issues. > > [1] https://apps.apple.com/us/app/utm-virtual-machines/id1538878817 > [2] > https://www.fsf.org/blogs/licensing/more-about-the-app-store-gpl-enforcement -- Alex Bennée

Re: QEMU Clock record and replay

2021-02-25 Thread Alex Bennée
if we record the clock values in KVM mode, and > replay the clock values in TCG mode? It won't work. You can only ever record when running in TCG icount mode because having that stable and deterministic behaviour is a pre-requisite. -- Alex Bennée

Re: Guest OS becomes totally unresponsive when running on VMware

2021-02-18 Thread Alex Bennée
utside the container before without loss. All I'm suggesting is comparing the two profiles to see what the difference is. > > At this point I'm still waiting to be able to run QEMU newer version and see > if the issue still persists. -- Alex Bennée

Re: QEMU Memory access- to get contents of register after each load/store

2021-02-18 Thread Alex Bennée
ng. This will generate a lot of logs. > > - Naomi -- Alex Bennée

Re: On emulating Raspberry Pi

2021-02-18 Thread Alex Bennée
nels cannot > be used with Qemu, but the one I have written above must be used? > > Can youn give me a suggestion, how to run Qemu 5.2, so that it emulates > Rasberry 3A+, Raspberry 3B, and Rapsberry 3B+ with WiFi card? > > Thanks > Дилян -- Alex Bennée

Re: Guest OS becomes totally unresponsive when running on VMware

2021-02-18 Thread Alex Bennée
ogs. Does perf top point you towards any areas where QEMU is particularly busy? Have you compared the perf report of a in-container vs out of container QEMU? -- Alex Bennée

Re: [QEMU TCG] Qeustion about the PCID Feature in TCG

2021-02-18 Thread Alex Bennée
${LOG_FILE} \-net > user,hostfwd=tcp::10022-:22 \-net nic \-display none \ > -nographic \-plugin QEMU_PATH/tests/plugin/libtlb.so,arg=inline,arg=io* Ahh good to see another plugin user. Be aware I just recently posted a pull request that fixes some recent breakages in the inline handling. What are you trying to measure with the plugin? -- Alex Bennée

Re: breakpoints don't work for kernel debugging with qemu and gdb

2021-02-18 Thread Alex Bennée
boots without stopping > at breakpoints. Are you sure you've set breakpoints at places that will be hit? Is your kernel using any form of address space randomisation? AFAICT it all should be working (at least in the current HEAD): QEMU CMD: /home/alex/lsrc/qemu.git/builds/arm.all/qemu-

Re: Debugging 32 bit ARM guests running under QEMU KVM on 64 bit ARM hosts with gdb

2021-01-12 Thread Alex Bennée
EMU versions recently, but for this I would. Re-reading the old thread I think this stalled because it wasn't entirely clear moving the gdbstub initialisation in the second patch was the cleanest way to deal with things. Does you patch take a similar approach? -- Alex Bennée

Re: [QEMU] Question regarding user mode support for ARM syscalls

2020-11-03 Thread Alex Bennée
e8) > = 0 ERR > > Questions: > -- > > 1. Is there any plan to add support for emulating syscalls supporting > 64 bit time on 32 bit architectures [2]? It's certainly a bug if it's not working for you. > > 2. Provide QEMU user space switch to adjust its time (i.e. add some > offset to in-fly emulated time syscalls - like clock_settime64) when it > is started? Unlikely - but you could carry a local patch for your own purposes. -- Alex Bennée

Re: Virtqueue Kick functions in QEMU

2020-10-06 Thread Alex Bennée
ttps://www.kernel.org/doc/html/latest/trace/events.html although you might find it easier using some of the higher level analysis tools. > > Best Regards, > Arnab -- Alex Bennée

Re: Question on implementation detail of `temp_sync`

2020-08-05 Thread Alex Bennée
case TEMP_VAL_CONST: > if (tcg_out_sti(s, ts->type, ts->val, > ts->mem_base->reg, ts->mem_offset)) { >break; > } > temp_load(s, ts, tcg_target_available_regs[ts->type], > allocated_regs, preferred_regs); > /* fallthrough */ -- Alex Bennée

Re: QEMU internal and architecture

2020-07-31 Thread Alex Bennée
se point me in the right direction? We have a bunch of stuff in our (incomplete) Developers Guide: https://qemu.readthedocs.io/en/latest/devel/index.html > > Thanks & Regards, > Pratik -- Alex Bennée

Re: QEMU plugin system

2020-07-31 Thread Alex Bennée
h will indicate that pmon was >>touched. It allows you to do all the preparations in the guest machine, >>then dump pmons as an indicator to start tracking and then run the >>target >>application. -- Alex Bennée

Re: [EXTERNAL] QEMU plugin system

2020-07-31 Thread Alex Bennée
e that pmon was touched. > It allows you to do all the preparations in the guest machine, then dump > pmons as an indicator to start tracking and then run the target application. -- Alex Bennée

Re: How the cpu_R in DisasContext is associated with register of CPUArchState

2020-07-06 Thread Alex Bennée
). You cannot access the run time values during translation but obviously the translator needs to know what the offset into CPUArchState is so we can load/save the values to the right place. >> >> thanks a lot! > > -- Alex Bennée

Re: Binary downloads of QEMU for Mac OS X

2020-06-22 Thread Alex John
https://brew.sh/ > On 22 Jun 2020, at 7:21 PM, Network– & System– Administration from > NeuroScience of Zhéxué–Cloud wrote: > > Dear Peter, > > thank you for this information. > But I am not using homebrew on my MACs - so how can I get this? > Best regards > > > Matthias > > Von meinem iPa

Re: basic qemu question

2020-06-12 Thread Alex Bennée
tore in files there, yes? Yes - both normal serial ports and semihosting output can be re-directed to a file using the standard -chardev options. > > On Fri, Jun 12, 2020 at 10:29 AM Alex Bennée wrote: > >> The following message is a courtesy copy of an article >> that has be

Re: How to tell if an emulated aarch64 CPU has stopped doing work?

2020-06-12 Thread Alex Bennée
repro case yet, and we can't really afford the > cost of slowing down every test run. > There's a decent chance that this is caused by an overloaded host, but our > host-side investigations haven't turned up anything concrete either. > > Any advice? > > --dbort > -- Alex Bennée

Re: Compatibility question between versions

2020-06-12 Thread Alex Bennée
o be sure that > I haven't forgotten anything > > Cordialement, > > * > -- Alex Bennée

Re: basic qemu question

2020-06-12 Thread Alex Bennée
to microcontrollers you would possibly be able to achieve parity. > > Cheers, > David > > - - - > David Beccue > -- Alex Bennée

Re: Debugging multi-threaded TCG for aarch64 emulation (stalled vCPU)

2020-06-12 Thread Alex Bennée
thread in question is not running actual guest code then the state of CPUState will be valid. > > Thanks. > -- Alex Bennée

Re: Automating Qemu and GDB together

2020-05-13 Thread Alex Bennée
ld call it a day. 8-) Well I have already pointed out a number of ways you could sequence the starting of QEMU and connection of GDB. Please don't expect QEMU to grow another feature because they aren't acceptable to you. > > >> This could be improved, the logic for linux-user in gdbstub is: >> [...] > > OK, thanks for the info. As a humble QEMU user, this goes over my head at the > moment, but it is good to have it documented, if only in this mailing list. > > Regards, > rdiez -- Alex Bennée

Re: Automating Qemu and GDB together

2020-05-13 Thread Alex Bennée
(n == 0) { close(gdbserver_state.fd); } gdbserver_state.fd = -1; return sig; } } For system emulation targets its a little more complex as we rely on the chardev layer to handle things. > > Regards, > rdiez -- Alex Bennée

Re: Automating Qemu and GDB together

2020-05-13 Thread Alex Bennée
python attempts to fork gdb. > > My guess is that it is only luck. Or maybe something is actually > checking and retrying a few times. But GDB does not document any > retrying in its "remote" command. > > Best regards, > rdiez -- Alex Bennée

Re: Automating Qemu and GDB together

2020-05-13 Thread Alex Bennée
ching both QEMU and GDB. For the test cases I've never run into the problem of QEMU not being ready by the time python attempts to fork gdb. -- Alex Bennée

Re: Automating Qemu and GDB together

2020-05-13 Thread Alex Bennée
the FIFO. > > Alas, I have not seen a way to do that with Qemu yet. Can I somehow > tell Qemu to run a command when the virtual machine is ready to accept > a GDB connection? The gdbstub should be ready pretty early on in start-up. We now have a script in tests/guest-debug/run-test.p

Re: Using All Cores of CPU on Snapdragon Processor during x86-to-ARM User Space Emulation

2020-05-13 Thread Alex Bennée
we would only do these for the load/store instructions involved in inter-thread synchronisation operations but that's a fairly tricky problem to solve. > I am new to this, so sorry if > this doesn't make very much sense. > > Thank you -- Alex Bennée

Re: qemu tracing

2020-04-23 Thread Alex Bennée
ty-print the binary trace file: > > ./scripts/simpletrace.py trace-events-all trace-* # Override * with QEMU > > > I don't have qemu-pid - > So any idea ? The is the process id of QEMU when it ran. After your run do you not see some trace-1234 files in your working directory. -- Alex Bennée

Re: qemu_plugin_insn_disas() versus -cpu

2020-04-01 Thread Alex Bennée
.org/ Not all our front ends are converted to using decodetree but for those that do it was an idea... >> Plus as a bonus, having the disassembly be from 3rd party code >> means you don't get confused by having a bug in the translator >> which mis-decodes something but looks correct in the dissasembly >> because it has the identical bug. Of course the above approach would still suffer from this problem. -- Alex Bennée

Re: Qemu TCG Plugins - how to access guest registers?

2020-04-01 Thread Alex Bennée
f the source tree is the canonical document. Also "make check-tcg" will include a plugin test for each plugin in the tree for each test (assuming you have compilers available for each guest architecture - see docs/devel/testing.rst). Good luck! -- Alex Bennée

Re: Qemu plugin vs. valgrind

2020-04-01 Thread Alex Bennée
Marc Hacin writes: > Le 31/03/2020 à 16:38, Alex Bennée a écrit : >> Marc Hacin writes: >> >>> On my tests, mono-core, it seems that the load/store callback is >>> called just after the call of the instruction-before callback which is >>> the

Re: Qemu plugin vs. valgrind

2020-03-31 Thread Alex Bennée
ki.qemu.org/Features/gdbstub > > Eventually, I have tested my plugin with a user mode guest statically > and absolutely linked ELF (with no relocations). > Then I passed trigger information to my plugin via the argv feature. > > > Thanks for your answers. -- Alex Bennée

Re: Qemu plugin vs. valgrind

2020-03-31 Thread Alex Bennée
it's a function of the translated linker. That said I believe the symbol addresses are calculated as relative to each ELF segment. >> Sorry, I am not sure if plugin development falls into "users" or "devel" >> activities. I would recommend -devel for future follow up posts. >> >> -- >> Thierry Bernier >> >> -- Alex Bennée

Re: Qemu TCG Plugins - how to access guest registers?

2020-03-30 Thread Alex Bennée
Benjamin writes: > Thanks for your quick response. > > On Mon, Mar 30, 2020 at 9:15 AM Alex Bennée wrote: > >> >> Lukas Straub writes: >> >> >> My question is, how do I access the guest memory and registers from the >> >> plugin c

Re: Qemu TCG Plugins - how to access guest registers?

2020-03-30 Thread Alex Bennée
merate this is to chew through a bunch of XML that each target generates (see gdb_register_coprocessor). I'm not keen on exposing that pile of XML via the register interface. Maybe there is scope to improve our internal APIs so the enumeration of registers can be handled by helpers that record mappings and ids and generate the XML for the gdbstub centrally? There may be other approaches we could take and I'm open to suggestions. >> >> Thanks > > CC'ing the maintainer of TCG Plugins. -- Alex Bennée

Re: passthrough host NIC interface to VM

2020-03-03 Thread Alex
You don't need to use libvirt AFAIK, everything can be done manually if you so prefer. The arch wiki guide on PCI passthrough or reddit.com/r/VFIO can help you find your way. > On 3 Mar 2020, at 10:57 PM, Kent Dorfman wrote: > > On 3/3/20, Сергей Низовцев wrote: >>

Re: Is STM32f429 discovery board fully supported on qemu?

2020-02-06 Thread Alex Bennée
use case for supporting it in QEMU. Random development boards that may have a very limited use case is less compelling. However if any of the existing embedded dev houses that already support QEMU want to reduce their 3rd diff by up-streaming and supporting their favourite pet board I don't see many objections would be raised. -- Alex Bennée

Re: How am I supposed to use the -audiodev option?

2019-10-27 Thread Alex John
I use -audiodev pa,id=pa1,server=`pactl info | grep 'Server String' | awk '{print $3}'` On a gentoo system without systemd. The arch wiki has more information under PCI pass through. > On 27 Oct 2019, at 7:23 PM, Lukas Straub wrote: > > On Sun, 27 Oct 2019 07:35:23 +0200 > _ wrote: > >>

Re: [RFC PATCH] configure: deprecate 32 bit build hosts

2019-09-26 Thread Alex Bennée
Alistair Francis writes: > On Thu, Sep 26, 2019 at 8:41 AM Alex Bennée wrote: >> >> >> Thomas Huth writes: >> >> > On 26/09/2019 15.46, Christian Borntraeger wrote: >> >> >> >> >> >> On 26.09.19 14:58, Daniel P. Berran

Re: [RFC PATCH] configure: deprecate 32 bit build hosts

2019-09-26 Thread Alex Bennée
Peter Maydell writes: > On Thu, 26 Sep 2019 at 00:31, Alex Bennée wrote: >> >> The 32 bit hosts are already a second class citizen especially with >> support for running 64 bit guests under TCG. We are also limited by >> testing as actual working 32 bit machine

  1   2   >