Re: Kernel panic - not syncing: Unable to initialise architected timer : unable to boot Android 14 with qemu-system-aarch64 on Ubuntu 24.04 X64 bit

2024-09-11 Thread Peter Maydell
On Wed, 11 Sept 2024 at 01:02, Mario Marietto wrote: > > Hello to everyone. (Please trim your quoted text and don't top-post: it makes emails a pain to read.) > qemu-system-aarch64-headless: Unable to determine GIC version supported by > host This suggests your host kernel is either too old or

Re: Regarding how qemu handles write request to the Main Meormy issued by the Guest OS

2024-09-04 Thread Peter Maydell
On Wed, 4 Sept 2024 at 14:20, Samindu Cooray wrote: > > Hi, I'm an undergrad pursuing a computer science degree. Currently, I'm going > through the Qemu code. I want to find the function that triggers in Qemu when > the guest os issues a write request to its main memory. At this point, I have >

Re: Error : init: partition(s) not found in /sys, waiting for their uevent(s): mmcblk0p2, mmcblk0p3 while trying to emulate Android 14 on Ubuntu 24.04 X64 bit using qemu-system-aarch64.

2024-09-03 Thread Peter Maydell
On Tue, 3 Sept 2024 at 17:13, Mario Marietto wrote: > > It was only an hypothesis : > > https://pastebin.ubuntu.com/p/zjjgXf8xXM/ That log shows that QEMU starts (if the virtio-blk-pci wasn't built in it would give you an error message instead) and that the guest has managed to access vda/vdb/vdc

Re: Error : init: partition(s) not found in /sys, waiting for their uevent(s): mmcblk0p2, mmcblk0p3 while trying to emulate Android 14 on Ubuntu 24.04 X64 bit using qemu-system-aarch64.

2024-09-03 Thread Peter Maydell
On Tue, 3 Sept 2024 at 16:46, Mario Marietto wrote: > > Nope,I don't need 9pfs. I'm trying to understand what parameter I had enabled > when it worked. Is there a parameter to pass to enable the support for > "virtio-blk-pci" ? (as I said,I'm on the Jetson Nano now). Is virtio-blk-pci > enabled

Re: Error : init: partition(s) not found in /sys, waiting for their uevent(s): mmcblk0p2, mmcblk0p3 while trying to emulate Android 14 on Ubuntu 24.04 X64 bit using qemu-system-aarch64.

2024-09-03 Thread Peter Maydell
On Tue, 3 Sept 2024 at 16:25, Mario Marietto wrote: > > Hello. > > Actually I'm using my Jetson Nano and I'm trying to emulate Android 10 by > antmicro. I'm trying to use the same parameters used several years ago,when > it worked. What I want to try now is to enable virtio-blk-pci on qemu. > P

Re: Error : init: partition(s) not found in /sys, waiting for their uevent(s): mmcblk0p2, mmcblk0p3 while trying to emulate Android 14 on Ubuntu 24.04 X64 bit using qemu-system-aarch64.

2024-09-02 Thread Peter Maydell
On Mon, 2 Sept 2024 at 18:12, Mario Marietto wrote: > Well. At the time the only version of qemu which has been able to emulate it > has been qemu-system-aarch64 vers. 5.0 dirty. > > Can someone tell me where I can get the same version ? What's the meaning of > "dirty" ? "dirty" means "there we

Re: Error : init: partition(s) not found in /sys, waiting for their uevent(s): mmcblk0p2, mmcblk0p3 while trying to emulate Android 14 on Ubuntu 24.04 X64 bit using qemu-system-aarch64.

2024-09-02 Thread Peter Maydell
On Mon, 2 Sept 2024 at 15:44, Mario Marietto wrote: > > The real problem here is that I'm asking in a lot of "places",but I get very > few useful responses. It seems that there isn't a good knowledge about the > relationships that there are between qemu and android. Yes, I mentioned that in som

Re: Error : init: partition(s) not found in /sys, waiting for their uevent(s): mmcblk0p2, mmcblk0p3 while trying to emulate Android 14 on Ubuntu 24.04 X64 bit using qemu-system-aarch64.

2024-09-02 Thread Peter Maydell
On Mon, 2 Sept 2024 at 15:06, Mario Marietto wrote: > > ---> I think it would be better to fix the guest > > I have no idea what to do. Please elaborate more. I know very little about Android -- you'd need to talk to somebody who does to find out about how to configure what kind of disk it is exp

Re: Error : init: partition(s) not found in /sys, waiting for their uevent(s): mmcblk0p2, mmcblk0p3 while trying to emulate Android 14 on Ubuntu 24.04 X64 bit using qemu-system-aarch64.

2024-09-02 Thread Peter Maydell
On Mon, 2 Sept 2024 at 14:50, Mario Marietto wrote: > [ 1.993668] init: bool > android::init::BlockDevInitializer::InitDevices(std::set): > partition(s) not found in /sys, waiting for their uevent(s): mmcblk0p2, > mmcblk0p3 > > > One user suggested to : > > > > > Hi!!! The "/sys" is a "dynamic

Re: Kernel panic - not syncing: Unable to initialise architected timer : unable to boot Android 14 with qemu-system-aarch64 on Ubuntu 24.04 X64 bit

2024-08-25 Thread Peter Maydell
On Sun, 25 Aug 2024 at 11:45, Mario Marietto wrote: > > Please look at this example : > > qemu-system-aarch64 \ > -smp 4 \ > -m 2048 \ > -cpu cortex-a72 \ > -machine virt \ > -serial stdio \ > -kernel > /mnt/zroot2/zroot2/OS/Linux/lineage-21.0-20240618-UNOFFICIAL-KonstaKANG-rpi4-atv/boot/Image >

Re: Kernel panic - not syncing: Unable to initialise architected timer : unable to boot Android 14 with qemu-system-aarch64 on Ubuntu 24.04 X64 bit

2024-08-24 Thread Peter Maydell
On Sat, 24 Aug 2024 at 17:12, Mario Marietto wrote: > I want to emulate Android 14 by KonstaKang using qemu-system-aarch64 and as > model virt on Ubuntu 24.04 x64 bit installed on my PC (Intel I9 + RTX 2080 > ti). So first up, this is as far as I know "uncharted territory" in that I'm not awar

Re: Emulate if x86-64 on x86-64

2024-08-13 Thread Peter Maydell
On Tue, 13 Aug 2024 at 17:52, Jakob Bohm wrote: > > On 2024-08-13 18:43, Peter Maydell wrote: > > On Tue, 13 Aug 2024 at 16:54, Jakob Bohm via > > wrote: > >> Another approach that might be worth examining would be to build the TCG > >> snippet collectio

Re: Emulate if x86-64 on x86-64

2024-08-13 Thread Peter Maydell
On Tue, 13 Aug 2024 at 16:54, Jakob Bohm via wrote: > Another approach that might be worth examining would be to build the TCG > snippet collection for different host CPU generations (such as x86-64 > with only SSE2, x86-64 with SSE3 and x86-64 with AVX512), thereby > providing fast emulation of t

Re: CS-4231 on SS-5

2024-08-13 Thread Peter Maydell
On Tue, 13 Aug 2024 at 14:27, JF Sebastian wrote: > I'm currently emulating a SS-5 under QEMU on x86_64 Linux. From > what I could understand in the documentation, the sound chip, CS-4231. > The wiki https://www.qemu.org/docs/master/system/target-sparc.html > states "CS4231 sound device (only on S

Re: Emulate if x86-64 on x86-64

2024-08-13 Thread Peter Maydell
On Mon, 12 Aug 2024 at 18:47, Chris Parker wrote: > FYI - I have been interested for some time in making an accelerator that > would run in a sort-of hybrid KVM mode, where host-supported instructions are > executed by the processor, but unsupported functions are provided by > something like th

Re: Emulate if x86-64 on x86-64

2024-08-12 Thread Peter Maydell
On Mon, 12 Aug 2024 at 14:19, Peter Maydell wrote: > > On Mon, 12 Aug 2024 at 14:02, Chris Parker wrote: > > For example, I want to run an application that contains SSE4.1 instructions > > on a host machine that doesn't have support for these. If I try to do it > &g

Re: Emulate if x86-64 on x86-64

2024-08-12 Thread Peter Maydell
On Mon, 12 Aug 2024 at 14:02, Chris Parker wrote: > > I have a very simple use case for QEMU that doesn't seem to be possible, > despite suggestions in some parts of the documentation that it should be, or > am I doing something wrong? > > The basic issue is how to get QEMU to provide new proces

Re: Nested virtualisation macos intel

2024-08-12 Thread Peter Maydell
On Mon, 12 Aug 2024 at 08:18, Jozsef CZOMPO wrote: > > > > On 12 Aug 2024, at 8:15 AM, Talha Khan wrote: > > > > How can i enable kvm(on debian) inside qemu running on macos sonoma 14.5, i > > have started the qemu on mac using apples hvf, i want to run vms inside > > that qemu but cannot do so

Re: add GPU support to qemu-aarch64

2024-07-18 Thread Peter Maydell
On Thu, 18 Jul 2024 at 15:31, Sanjeev Kumar wrote: > > Hey peter, > Thanks for the response. > We specifically need vexpress-a15 for our usecase. Forget about PCI, is there > any way to get better graphics, increase graphics framerate? Without bringing > GPU pci into picture No. Asking for vexp

Re: add GPU support to qemu-aarch64

2024-07-18 Thread Peter Maydell
On Thu, 18 Jul 2024 at 12:33, Sanjeev Kumar wrote: > > Hi, > I am trying to passthrough GPU to qemu-system-aarch64le. why i need to do > this is, the graphics running in OS hosted on qemu-system-aarch64le is very > less framerate. As there is no PCI support, when i add "-device > vfio-pci,host=

Re: base format

2024-04-25 Thread Peter Maydell
On Thu, 25 Apr 2024 at 09:55, lacsaP Patatetom wrote: > > hi, > > when using `qemu-img create`, why do I have to specify the format of the base > image ? > can't `qemu-img` detect it itself ? Image format detection isn't 100% reliable. Notably, a 'raw' format image could in theory look like any

Re: armv7-m: tlb_set_page_full: Assertion failed

2024-03-30 Thread Peter Maydell
On Fri, 29 Mar 2024 at 12:47, Raphaël Poggi wrote: > > Hi, > > I am currently working on adding support of a custom ASIC based on > ARMv7-M (Cortex-M3). > > I have a RAM region defined as followed: > > base address = 0x0021E000 > size = 0x1FFC > > For some reason, during memcpy performed on guest

Re: No 'PCI' bus found for device 'ivshmem-plain'

2024-03-21 Thread Peter Maydell
On Thu, 21 Mar 2024 at 08:16, Sanjeev Kumar wrote: > > Hi, > our kernel is build with aarch64le. it is 64 bit ARM architecture. Such a kernel cannot possibly boot on the vexpress-a15 machine that you say you are using. So something doesn't seem right... > when i am trying to use virt as machine,

Re: No 'PCI' bus found for device 'ivshmem-plain'

2024-03-20 Thread Peter Maydell
On Wed, 20 Mar 2024 at 13:06, Sanjeev Kumar wrote: > > Hi Peter, > Thanks for your detailed review. > ifs.bin is our custom build and the linux kernel is booting fine with this > file. If it is, then it must be a 32-bit kernel. So trying to run it on the cortex-a57 will not work at all, because

Re: No 'PCI' bus found for device 'ivshmem-plain'

2024-03-20 Thread Peter Maydell
On Wed, 20 Mar 2024 at 06:40, Sanjeev Kumar wrote: > > Hi, > Sorry for incomplete command. > here is the complete command line. > > qemu-system-aarch64 -machine vexpress-a15 -cpu cortex-a57 -smp 4 -m 10G > -kernel ifs.bin -drive file=disk-qemu.vmdk,if=none,id=drv0 -device > virtio-blk-device,dri

Re: No 'PCI' bus found for device 'ivshmem-plain'

2024-03-19 Thread Peter Maydell
On Tue, 19 Mar 2024 at 09:41, Sanjeev Kumar wrote: > > Hi, > I am starting QEMU as below. > qemu-system-aarch64 [] -device ivshmem-plain,memdev=hostmem -object > memory-backend-file,size=1M,share=on,mem-path=/dev/shm/ivshmem,id=hostmem Please give us the *full* command line, not the command

Re: QEMU Compatibility for Cortex-A55 AArch32 Firmware

2024-03-07 Thread Peter Maydell
On Thu, 7 Mar 2024 at 01:03, yb liu wrote: > > Thanks a lot for you respond me soon! > The exact instruction is mrc, and the exception happended in early boot > process. I have no idea to how to debug this error because it happended in > code_gen_prologue. That's a system register access. If yo

Re: QEMU Compatibility for Cortex-A55 AArch32 Firmware

2024-03-06 Thread Peter Maydell
On Wed, 6 Mar 2024 at 14:33, yb liu wrote: > > > Dear QEMU developers > > I hope this email finds you well. We are currently facing an issue related to > QEMU and the Cortex-A55 architecture. Specifically, we have compiled a > firmware for Cortex-A55 and would like it to run smoothly on QEMU A55

Re: Xilinx zcu102 machine is absent in list of supported machines

2024-03-05 Thread Peter Maydell
On Tue, 5 Mar 2024 at 18:31, Vadim Idelchuk via wrote: > The additional information about my build: Thanks for that. Yeah, you're missing only this machine type. I had a poke around in the config files, and I think this is because the machine has a dependency on pixman, so if configure doesn't fi

Re: Xilinx zcu102 machine is absent in list of supported machines

2024-03-04 Thread Peter Maydell
On Mon, 4 Mar 2024 at 11:20, Vadim Idelchuk via wrote: > For building the products I run the following: > > ./configure > > make > > > > I tried these sequence number of times with the same result - machine type > xlnx-zcu102 is absent in the list of supported machines What is the exact command

Re: Xilinx zcu102 machine is absent in list of supported machines

2024-03-03 Thread Peter Maydell
On Sun, 3 Mar 2024 at 11:01, Vadim Idelchuk wrote: > I built the latest version of QEMU - v8.2.0-1528-g5767815218. > But the machine xlnx-zcu102 is absent in the list of supported machines. > Is it need any additional definitions for building? It should build by default if you build the aarch64 t

Re: Emulating multi core processor (ARM cortex M7) on QEMU

2024-02-26 Thread Peter Maydell
On Mon, 26 Feb 2024 at 10:59, ankita suman wrote: > I am trying to emulate multi core processor (dual core for now) on QEMU. The > processor I am targeting is cortex m7. I tried by running multiple instances > of QEMU to emulate multi cores, and use shared memory for communication, but > since

Re: Using -spice command

2024-02-25 Thread Peter Maydell
On Sat, 24 Feb 2024 at 22:02, Serdar Bahar wrote: > I'm trying to enable Spice in my virtual machine. In order to do that, I've > found that I should append my booting command line with an option like this : > "-spice port=3001...". However, when I try this, I get the error: > "qemu-system-x86_

Re: Multiple UARTs using -chardev and -device instead of -serial

2024-02-21 Thread Peter Maydell
On Tue, 20 Feb 2024 at 21:26, Michael N. Moran wrote: > I really wanted a way to specify associations between front-end > (serial?) and back-end (chardev?) without the need for the > sequential assignment of front-ends, and the need to skip > unused front-ends by using the likes of -serial null.

Re: Multiple UARTs using -chardev and -device instead of -serial

2024-02-20 Thread Peter Maydell
On Mon, 19 Feb 2024 at 20:57, Michael N. Moran wrote: > > I'm working on Linux with `qemu-system-arm -machine olimex-stm32-h405`, which > uses an `stm32f405-soc` that implements 8 USARTs(UARTs). > > I currently use two "-serial telnet" options which assigns the first two > USART ports sequential

Re: Linux AMBA-CLCD driver no longer works with Qemu versatilepb target. What to do?

2024-02-09 Thread Peter Maydell
On Fri, 9 Feb 2024 at 16:53, Christopher Davies wrote: > I've been down a bit of a rabbit hole trying to get the Linux AMBA-CLCD > driver for versatilepb target's graphics to work with modern Linux kernels. > After a good deal of reading of both the Linux kernel code and the qemu code, > I disc

Re: I Failed to execute AARCH64 Linux kernel on the QEMU

2024-01-31 Thread Peter Maydell
On Wed, 31 Jan 2024 at 12:12, Minjun Hong wrote: > > Hello. > > I'm trying to execute AARCH64 Linux kernel on the QEMU. > > But,there was an error and the error log is: >> >> rom: requested regions overlap (rom bootloader. free=0x422c0a00, >> addr=0x4000) >> qemu-system-aarch6

Re: TCG Plugin Dynamic Load

2024-01-09 Thread Peter Maydell
On Tue, 9 Jan 2024 at 16:12, Stephen Bates via wrote: > > Hi > > I am exploring the rather awesome TCG Plugin feature of QEMU > (https://www.qemu.org/docs/master/devel/tcg-plugins.html#). The latest > documentation for this feature states: > > "This is a new feature for QEMU and it does allow pe

Re: How to stop Qemu from resetting terminal?

2023-12-19 Thread Peter Maydell
On Mon, 18 Dec 2023 at 23:56, Dave Blanchard wrote: > > > Hmm. Well, we do put the terminal into raw mode (so that we > > get stuff like ^C), but that is supposed to be reset when > > QEMU exits. > > Can you please direct me to where in the source code this happens? It happens in different places

Re: How to stop Qemu from resetting terminal?

2023-12-18 Thread Peter Maydell
On Mon, 18 Dec 2023 at 13:36, Dave Blanchard wrote: > > > > If you're directing a guest's terminal to the console then things > > like line wrapping are entirely up to the guest -- QEMU is > > providing the equivalent of a piece of hardware like a serial > > terminal, and how the guest chooses to

Re: How to stop Qemu from resetting terminal?

2023-12-18 Thread Peter Maydell
On Sun, 17 Dec 2023 at 22:49, Dave Blanchard wrote: > > One particularly annoying trait of Qemu is how it nukes my terminal settings. > This is especially infuriating when booting Linux where the VM console is > redirected to the serial port, which is then displayed on the host console. > Among

Re: Can't get multi-process qemu to work

2023-12-11 Thread Peter Maydell
On Mon, 11 Dec 2023 at 11:52, Shunsuke Mie wrote: > The steps taken are as follows: > > 1. build qemu v6.2.0-rc2 Is that a typo for "v8.2.0-rc2", or are you really building from a two year old release candidate ? thanks -- PMM

Re: VFS: Unable to mount root fs on unknown-block(0,0)

2023-11-29 Thread Peter Maydell
On Wed, 29 Nov 2023 at 15:08, 泰宇周 wrote: > > I tried to use febootstrap to make a roofs image for qemu-kvm. > It reported that > > [1.766919] Kernel panic - not syncing: VFS: Unable to mount root fs > on unknown-block(0,0) When the kernel tells you it can't mount the root filesystem, the

Re: Solutions for enabling KVM in muti-arch soc machine

2023-11-08 Thread Peter Maydell
On Wed, 8 Nov 2023 at 01:40, 陈朱叠(澜赆) wrote: > > Dear QEMU folks, > We have modeled our system using qemu, which includes multiple cortex-m > cores and multiple neoverse n1 cores, all running in TCG mode. Based on this, > we want to use KVM technology to accelerate the performance of the neov

Re: pci passhthrough device's pci mem cannot mapped

2023-10-31 Thread Peter Maydell
On Tue, 31 Oct 2023 at 06:51, Jiatong Shen wrote: > > Hello community experts, > > I am using a 4.2.0 versioned qemu and passthrough an A40 (48G GPU memory). > When I start the virtual machine with following option "-m > size=4096M,slots=2,maxmem=1T ", the virtual machine could boot but the in

Re: [Qemu-discuss] Setting vendor and product ids to emulated USB storage device

2023-09-25 Thread Peter Maydell
On Sun, 24 Sept 2023 at 23:05, Igor Ordecha wrote: > I'm trying to emulate a USB thumb drive from a .img file. My current > arguments for that look like this: > > -drive file=/path/to/file.img,if=none,id=drive-usb0,format=raw -device > nec-usb-xhci,id=xhci -device > usb-storage,bus=xhci.0,id=dr

Re: Qemu Uninstall

2023-09-11 Thread Peter Maydell
On Sun, 10 Sept 2023 at 20:52, Narcis Garcia wrote: > > I do with this command: > > sudo apt --autoremove remove qemu qemu-system qemu-utils > > ...but probably your operating system provides a graphical package > manager that helps to do it with a single click. Yes, if you installed QEMU via you

Re: ARM system emulator

2023-08-17 Thread Peter Maydell
On Thu, 17 Aug 2023 at 09:05, Swedha R wrote: > > Hi, > In the qemu website , under the section ARM system emulator, they mentioned > like, > > Secure-World-only devices if the CPU has TrustZone: > > A second PL011 UART > A second PL061 GPIO controller, with GPIO lines for triggering a system res

Re: Invalid accelerator kvm / error: kvm run failed Function not implemented ERRORS trying to virtualize a guest OS on the ARM Chromebook running with a relatively recent kernel version and KVM enable

2023-08-11 Thread Peter Maydell
On Fri, 11 Aug 2023 at 18:52, Mario Marietto wrote: > > ok. I could extract the kernel files (so,between the qemu parameters I should > put : initrd and vmlinuz,right ? How ? > > -enable-kvm -serial stdio -kernel vmlinux -what here initrd \ > > from the ubuntu 22.10 img,but I'm sure that it does

Re: Invalid accelerator kvm / error: kvm run failed Function not implemented ERRORS trying to virtualize a guest OS on the ARM Chromebook running with a relatively recent kernel version and KVM enable

2023-08-11 Thread Peter Maydell
On Fri, 11 Aug 2023 at 18:27, Mario Marietto wrote: > > ok. I've been lucky. Qemu compiled successfully. Now I'm going to execute > this command : > > qemu-system-arm \ > -enable-kvm -serial stdio -kernel zImage \ > -m 512 -M vexpress-a15 -cpu cortex-a15 \ > -drive > file=/mnt/fisso/

Re: Invalid accelerator kvm / error: kvm run failed Function not implemented ERRORS trying to virtualize a guest OS on the ARM Chromebook running with a relatively recent kernel version and KVM enable

2023-08-11 Thread Peter Maydell
On Fri, 11 Aug 2023 at 17:05, Mario Marietto wrote: > > I made some progress,but unfortunately I've got an error : > > root@devuan:~/Desktop/qemu-v5.1.0# ./configure --target-list=arm-softmmu > --enable-opengl --enable-gtk --enable-kvm --enable-guest-agent --enable-spice > --audio-drv-list="oss

Re: Invalid accelerator kvm / error: kvm run failed Function not implemented ERRORS trying to virtualize a guest OS on the ARM Chromebook running with a relatively recent kernel version and KVM enable

2023-08-11 Thread Peter Maydell
On Fri, 11 Aug 2023 at 14:44, Валентин via wrote: > > > I've thought to compile it directly on the devuan 4 installed on the ARM > > chromebook. > > If you have native Arm toolchain, it's even simpler then – just try to > "./configure" and "make". Specify a --target-list= option to configure un

Re: Invalid accelerator kvm / error: kvm run failed Function not implemented ERRORS trying to virtualize a guest OS on the ARM Chromebook running with a relatively recent kernel version and KVM enable

2023-08-11 Thread Peter Maydell
On Fri, 11 Aug 2023 at 13:30, Mario Marietto wrote: > > ok. Can you share the github address ? I found the source code for x86-x64 > but not for armhf. There is not, and has never been, a separate git tree for different guest architectures. It is all in the one git tree at https://gitlab.com/qem

Re: Invalid accelerator kvm / error: kvm run failed Function not implemented ERRORS trying to virtualize a guest OS on the ARM Chromebook running with a relatively recent kernel version and KVM enable

2023-08-11 Thread Peter Maydell
On Fri, 11 Aug 2023 at 12:19, Mario Marietto wrote: > Anyway,can you tell me where is the branch 5.1 for the qemu source code for > armhf ? You want the "v5.1.0" git tag. -- PMM

Re: Invalid accelerator kvm / error: kvm run failed Function not implemented ERRORS trying to virtualize a guest OS on the ARM Chromebook running with a relatively recent kernel version and KVM enable

2023-08-11 Thread Peter Maydell
On Fri, 11 Aug 2023 at 11:34, Mario Marietto wrote: > > ok. I will recompile a qemu version lower than 5.2. I've asked all around and > someone says that I should use 5.1,someone else 4.9. Which version should I > use ? And,please can you point me to a good tutorial that can teach me the > proc

Re: Invalid accelerator kvm / error: kvm run failed Function not implemented ERRORS trying to virtualize a guest OS on the ARM Chromebook running with a relatively recent kernel version and KVM enable

2023-08-11 Thread Peter Maydell
On Thu, 10 Aug 2023 at 18:28, Mario Marietto wrote: > > ---> You can't use KVM with the vexpress-a15 board. The only Arm guest > machine that will work with KVM is the "virt" board. > > point 1) > > On the virtual open systems website they used the vexpress-a15 board. You can > read by yourself

Re: Invalid accelerator kvm / error: kvm run failed Function not implemented ERRORS trying to virtualize a guest OS on the ARM Chromebook running with a relatively recent kernel version and KVM enable

2023-08-10 Thread Peter Maydell
On Thu, 10 Aug 2023 at 17:52, Mario Marietto wrote: > I conducted some further experiments : > > In this example I've used qemu 5.2.0 installed by default by the devuan 4 : > > > qemu-system-arm \ > -enable-kvm -serial stdio -kernel zImage \ > -m 512 -M vexpress-a15 -cpu cortex-a15 \ >

Re: Doubts related to QEMU platform

2023-08-07 Thread Peter Maydell
On Sat, 5 Aug 2023 at 15:00, Lakshmana Reddy wrote: > I am working on an ubuntu machine and using the qemu platform for emulating > an x86 architecture .And i am having some doubts related to this work which > are mentioned as follows > > Can I emulate gpio driver pins inside the virtual environ

Re: GPIO support on QEMU

2023-08-04 Thread Peter Maydell
On Fri, 4 Aug 2023 at 11:02, Swedha R wrote: > > Hi , > Is qemu will support virtual GPIO drivers. How to work on GPIO in qemu? Broadly speaking, you seem to be trying to do something that QEMU is not set up to do. QEMU's support for GPIO controllers and GPIO lines is almost entirely there so we

Re: GPIO interrupt on QEMU

2023-08-04 Thread Peter Maydell
On Fri, 4 Aug 2023 at 10:25, Swedha R wrote: > > Hi team, > I have arm64 up and running in Qemu, And I built kernel image, rootfs > everything via buildroot open source I cloned from git. > And I customized via make - menuconfig like enabling gpio support, libgpiod > module and in device driver

Re: GPIO interrupt on QEMU

2023-08-03 Thread Peter Maydell
On Thu, 3 Aug 2023 at 14:31, Swedha R wrote: > > Hi team, > I have arm64 up and running in Qemu, And I built kernel image, rootfs > everything via buildroot open source I cloned from git. > And I customized via make - menuconfig like enabling gpio support, libgpiod > module and in device driver

Re: No 'virtio-bus' bus found for device 'virtio-blk-device' - Error

2023-07-31 Thread Peter Maydell
On Sun, 30 Jul 2023 at 21:32, Swedha R wrote: > > Hi , > when I run this following command , I am facing this problem for all machine > types rather that virt. > > qemu-system-riscv64 -M sifive_u -bios fw_jump.elf -kernel Image -append > "rootwait root=/dev/vda ro" -drive file=rootfs.ext2,format

Re: Problem debugging kernel driver running on guest os

2023-07-25 Thread Peter Maydell
On Tue, 25 Jul 2023 at 12:50, Mark Wood-Patrick wrote: > > I am trying to debug a driver issue where the driver is running on the guest > os running under QEMU 7.1.0 using gdb running on the host & connecting to the > guest. When I try to attach I get a message "qemu-system-x86_64:

Re: Qemu with E1000 NIC causing segfault when compiled statically in Docker

2023-07-11 Thread Peter Maydell
On Tue, 11 Jul 2023 at 15:18, Weller, Nitzan wrote: > > Hello, > > We are trying to run Qemu with E1000 as the NIC. > The Qemu we use is compiled statically using a Docker, based on > https://github.com/ziglang/qemu-static. > When we boot a VM it causes a Segfault that crashes the VM during the b

Re: qemu aarch64 info registers PC register not changing

2023-07-10 Thread Peter Maydell
On Mon, 10 Jul 2023 at 09:12, Jiatong Shen wrote: > > Hello community experts, > > I am trying to learn some arm64 basics using qemu. I would like to > retrieve a register value > through hmp command info register. The output is > > virsh # qemu-monitor-command --hmp eefcdf53-2fd5-40ee-91a8-8

Re: Need help getting QEMU to run QNX ifs.bin for Raspberry Pi on QMEU

2023-06-06 Thread Peter Maydell
On Tue, 6 Jun 2023 at 02:07, Ahmed Elsaka wrote: > i am trying to run QNX ifs.bin for raspberry pi on qmeu but it is not working > : > > what i actually did : > > installed qemu-system-aarch64 > downloaded ifs-rpi4.bin file from qnx sw center 3- using the follwoing > command to run this "ifs-rpi

Re: qemu-arm 6.2.0 command line argument

2023-06-01 Thread Peter Maydell
On Wed, 31 May 2023 at 18:48, Tanmay Das wrote: > > Hi, > > Hope all is well with you! > > I am trying to use qemu-arm to run a binary and trying to pass a command line > argument to the main method like below > > qemu-arm -cpu cortex-m3 path-to-the-binary This is the correct syntax. It works f

Re: arm64 disable some feature bit of ID_AA64ISAR0_EL1

2023-05-17 Thread Peter Maydell
On Wed, 17 May 2023 at 15:36, Jiatong Shen wrote: > > Thank you very much for the clarification. Although cpu type cannot be > changed, another > registers like aa64isar0, aa64isar1 could be changed through KVM_SET_ONE_REG > interface, > and then could potentially hide some cpu features from hos

Re: arm64 disable some feature bit of ID_AA64ISAR0_EL1

2023-05-17 Thread Peter Maydell
On Wed, 17 May 2023 at 14:06, Peter Maydell wrote: > > On Wed, 17 May 2023 at 03:23, Jiatong Shen wrote: > > > > Hello community Experts! > > > > I am doing some experiments with arm64 host machine. The host machine > > is kunpeng 920 5251k. I tr

Re: arm64 disable some feature bit of ID_AA64ISAR0_EL1

2023-05-17 Thread Peter Maydell
On Wed, 17 May 2023 at 03:23, Jiatong Shen wrote: > > Hello community Experts! > > I am doing some experiments with arm64 host machine. The host machine is > kunpeng 920 5251k. I try to boot a virtual machine with the following command: > > qemu-system-aarch64 -cpu cortex-a53 -enable-kvm -smp

Re: Why ARM CPU hot(un)plug is still unsupported?

2023-05-08 Thread Peter Maydell
On Mon, 8 May 2023 at 14:18, Zongyuan Li wrote: > > I’v noticed that there used to be a patch series working on it: > > https://patchew.org/QEMU/20200613213629.21984-1-salil.me...@huawei.com/ > > It seems to be working, any reason on why it is not merged? Is there any > difficulty > to implement

Re: Analyzing PCIe enumeration in u-boot or linux using qemu, is it possible?

2023-04-27 Thread Peter Maydell
On Thu, 27 Apr 2023 at 10:29, Chan Kim wrote: > I thought I would try to analyze u-boot's PCIe enumeration using qemu. > I used qemu-6.2 (old now) and built it for arm-softmmu. And I built > u-boot-v2022.07 using qemu_arm_defconfig and built linux-5.15.68 using > integrator_defconfig(just because

Re: Max memory on VM (debian bullseye)

2023-04-19 Thread Peter Maydell
On Wed, 19 Apr 2023 at 17:33, Wilm Boerhout wrote: > > Is there a Qemu/KVM live CD or such with the minimum 64-bit Debian set to > support it? The Debian official live CD image will probably do fine: https://www.debian.org/CD/live/ I don't know if QEMU is installed in it by default but if it isn

Re: Max memory on VM (debian bullseye)

2023-04-19 Thread Peter Maydell
On Wed, 19 Apr 2023 at 17:27, Wilm Boerhout wrote: > (Bangs forehead to wall). I have been working too long > with Raspberry Pi's with 64 bit Debian. I never noticed > that the laptop runs a 32-bit version of Debian now. Yeah, if your *host* is running a 32-bit kernel I would definitely suggest s

Re: Max memory on VM (debian bullseye)

2023-04-19 Thread Peter Maydell
On Wed, 19 Apr 2023 at 17:14, Wilm Boerhout wrote: > Thank you Narcis for your attention. Pc.ram is in the error message. And the > difference between GB and GiB is not the issue. > > I tried binging memory down from 12 GB, and only when it was 1 GB, it would > start the VM. Is there a restricti

Re: OpenGL 4

2023-04-17 Thread Peter Maydell
On Mon, 17 Apr 2023 at 18:04, Johannes Scheyerle wrote: > > Am 17.04.2023 um 19:03 schrieb Peter Maydell : > > > > On Mon, 17 Apr 2023 at 17:55, Johannes Scheyerle > > wrote: > >> > >> Hey PMM, > >> > >> thanks for the replay. Bu

Re: OpenGL 4

2023-04-17 Thread Peter Maydell
On Mon, 17 Apr 2023 at 15:53, Johannes Scheyerle wrote: > > Hey guys, > > I'm using an Macbook Air M1 and looking for a possibility to use Windows on > this computer. The most important thing is, that OpenGL 4 or higher > supported. Can your System do this? Bear in mind that on an M1 Windows wi

Re: How to run different firmware in a machine with 2 cpu?

2023-04-08 Thread Peter Maydell
On Fri, 7 Apr 2023 at 17:05, Huang Canming wrote: > > Sorry for the wrong cmd. It'a typo after I edit the sample command. > my command is: ./qemu-system-arm -M mymachine -smp cpus=2 -kernel test1.elf > -bios test2.elf -serial stdio -serial tcp::5678,server=on,wait=off > which use 'kernel' and "bi

Re: How to run different firmware in a machine with 2 cpu?

2023-04-07 Thread Peter Maydell
On Fri, 7 Apr 2023 at 11:41, Huang Canming wrote: > > hi, members. > > I'm trying to model a custom machine which has 2 cpus. Each cpu has its own > ram/rom. > > for now, I have create a different MemoryRegion for the 2 cpu. > > I want that the 2 cpu could run differnt firmware, so I use > > armv

Re: [QEMU 7.2.0] Emulating custom peripheral designed for qemu 4.0.0

2023-03-30 Thread Peter Maydell
On Thu, 30 Mar 2023 at 12:51, Fenix GDH wrote: > I am working on emulating some soho router firmwares, but most of them use > SoCs not supported by qemu. I found the Firmguide, where the authors > implemented some specific devices on QEMU 4.0.0 in order to emulate linux > kernel. I'm trying to

Re: Cross compilation of QEMU source code for ARM64

2023-03-24 Thread Peter Maydell
On Thu, 23 Mar 2023 at 19:57, Pedro Miguel Veiga de Almeida e Silva wrote: > > Hello, > > I am trying to cross compile the source code to deploy it in a xilinx ZCU106. > But every time I execute the ./configure --target-list=aarch64-softmmu > --enable-kvm and then make. > > But the file that com

Re: Anyone can help me? I run KVM + QEMU failed

2023-03-23 Thread Peter Maydell
On Thu, 23 Mar 2023 at 06:59, Zheng Jian wrote: > > Dear Qemu technical experts: > > My question is whether QEMU also needs to support specific CPU models > when KVM is turned on? Here is the description of the problem I encountered. No, there's nothing particularly you need to enable in QEMU. >

Re: Generating host code in TCG mode

2023-03-19 Thread Peter Maydell
On Sat, 18 Mar 2023 at 23:54, 沈梦姣 wrote: > > > Thanks Peter > > > 在 2023年3月19日,上午2:52,Peter Maydell 写道: > > > > On Fri, 17 Mar 2023 at 21:01, 沈梦姣 wrote: > >> TCG knows what registers may be clobbered by a call into > >> host C code (th

Re: Generating host code in TCG mode

2023-03-18 Thread Peter Maydell
On Fri, 17 Mar 2023 at 21:01, 沈梦姣 wrote: > TCG knows what registers may be clobbered by a call into > host C code (this is set up in the tcg_target_call_clobber_regs > regset by code in tcg_target_init()), so the register allocator > will either avoid using those registers > > Look at tcg_target_r

Re: Generating host code in TCG mode

2023-03-17 Thread Peter Maydell
On Fri, 17 Mar 2023 at 15:17, 沈梦姣 wrote: > > Hi, > When generating host code, sometimes it has to jmp to qemu common > code(e.g. memory management code to get host virtual address), but > it seems before the jmp the caller saved registers haven’t been > pushed to stack, qemu common code is functio

Re: ‏ qemu running uefi problem

2023-03-14 Thread Peter Maydell
On Tue, 14 Mar 2023 at 11:36, Alyosha Shevandin wrote: > > Peter Maydell, > can I assume that It would be possible if there was the full emulation of the > Lenovo hardware, including the all firmware blobs and Intell ME? As a theoretical question, maybe. But that's never going

Re: qemu running uefi problem

2023-03-13 Thread Peter Maydell
On Sun, 12 Mar 2023 at 16:25, Ahlani Poacher wrote: > > Hello, sorry to bother you, I'm a qemu beginner. I want to use QEMU > to emulate Lenovo's UEFI firmware, but so far I have only found a > tutorial for QEMU to run EDK2 to implement UEFI. I would like to > ask how to convert the UEFI executabl

Re: Failed to start qemu-system-aarch64 virt: qemu-system-aarch64: device requires ... bytes, block backend provides

2023-03-09 Thread Peter Maydell
On Thu, 9 Mar 2023 at 15:28, Alyosha Shevandin wrote: > > Hi, > I'm trying ti start virt emulation and fails with the follow error: > qemu-system-aarch64: device requires 67108864 bytes, block backend provides > 1112576 bytes > > What exactly does it mean and what could be done to prevent it? > I

Re: Emulating graviton G3

2023-03-03 Thread Peter Maydell
On Fri, 3 Mar 2023 at 07:27, Robert Henry wrote: > > I cannot figure out how to make QEMU TCG emulate aarch64 Graviton G3. I'm > working against master/head of the QEMU source. > > I come up with feature names by consulting > https://marcin.juszkiewicz.com.pl/download/tables/arm-socs.html which

Re: Custom soc on ARM64, failed to load the firmware properly

2023-02-27 Thread Peter Maydell
On Mon, 27 Feb 2023 at 17:28, Alyosha Shevandin wrote: > > I'm building the custom SoC emulation that is based on the Cortext-a55. > > During the runtime $pc register contains 0 instead the address that is > provided in means of arm_boot_info.loader_start : > Then the quemu is started: > > qemu-

Re: ‏ Crash in memory_region_init_ram call chain, when --bios command line parameter is presented.

2023-02-14 Thread Peter Maydell
On Tue, 14 Feb 2023 at 11:54, Alyosha Shevandin wrote: > > Thank you for your answer. I belive that 'owner' parameter is initialized: 1) > without --bios parameter the code does not crash; 2) I check the the owner > parameter before; > Here is the fragment of my code: > > static void my_soc_ini

Re: Suitable API do build the custom SoC emulation

2023-02-14 Thread Peter Maydell
On Tue, 14 Feb 2023 at 10:40, Alyosha Shevandin wrote: > > I wonder if there is any other way to build emulation for the custom SoC > except using QEMU C API? I mean, the C API the one, that is used in a lot of > examples under /hw folder. The other way – the high level abstractions – > based:

Re: Crash in memory_region_init_ram call chain, when --bios command line parameter is presented.

2023-02-14 Thread Peter Maydell
On Tue, 14 Feb 2023 at 11:03, Alyosha Shevandin wrote: > > > I would appreciate any clue about the crash. > > When I start my custom SoC emulation and the –bios command line parameter us > presented, the QEMU processes crashes before the custom code even tries to > load the firmware. It crashes

Re: migrate from qemu 2.11 to qemu 4.2 failed on arm machine

2023-01-30 Thread Peter Maydell
On Mon, 30 Jan 2023 at 06:53, Jiatong Shen wrote: > > Hello community experts, > >I am facing an issue to migrate a virtual machine from qemu 2.11 to qemu > 4.2 node. The command using on src node is > > qemu-system-aarch64 -M virt -vnc :2 -rtc base=utc,driftfix=slew -smp 2 -m > 4096 -cpu ho

Re: What is the purpose for "none" machine?

2023-01-23 Thread Peter Maydell
On Mon, 23 Jan 2023 at 20:08, Thomas Huth wrote: > > On 23/01/2023 19.07, Matwey V. Kornilov wrote: > > пн, 23 янв. 2023 г. в 21:02, Peter Maydell : > >> > >> On Mon, 23 Jan 2023 at 17:36, Matwey V. Kornilov > >> wrote: > >>> I am playing with q

Re: What is the purpose for "none" machine?

2023-01-23 Thread Peter Maydell
On Mon, 23 Jan 2023 at 18:07, Matwey V. Kornilov wrote: > > пн, 23 янв. 2023 г. в 21:02, Peter Maydell : > > > > On Mon, 23 Jan 2023 at 17:36, Matwey V. Kornilov > > wrote: > > > I am playing with qemu-system-avr currently. > > > I see that th

Re: What is the purpose for "none" machine?

2023-01-23 Thread Peter Maydell
On Mon, 23 Jan 2023 at 17:36, Matwey V. Kornilov wrote: > I am playing with qemu-system-avr currently. > I see that there is an "empty machine" called "none" in > > qemu-system-avr -M help > > list. > > Is it a real thing? I am failed to run any code with "none" machine. It is mostly for the

Re: Expected UART interrupt behavior on mps2_an521

2023-01-06 Thread Peter Maydell
On Thu, 5 Jan 2023 at 22:47, Eskowitz, Michael wrote: > I hope this is a simple question. I have been unable to find > documentation related to interrupt behavior on the UART of the > mps2_an521. Application note AN521 does not go into great depth > in this area and I am hoping that someone can

Re: Missing message from the mailing list (was: Fwd: qemu no sound)

2022-12-20 Thread Peter Maydell
On Tue, 20 Dec 2022 at 07:26, Paul Menzel wrote: > > Dear mailing list administrators. > > > Am 19.12.22 um 21:59 schrieb Helge Konetzka: > > […] > > > I already wrote an answer on qemu-devel list > > (https://lists.gnu.org/archive/html/qemu-devel/2022-12/msg02445.html). > > That message did not r

Re: Re:Re:Re: Fwd: qemu no sound

2022-12-19 Thread Peter Maydell
On Mon, 19 Dec 2022 at 16:20, wrote:> I noticed that many questions in the qemu-discus maling list are not answered here? Doesn't anyone use qemu on Windows and doesn't know the command how to start qemu-system-x86_64.exe with sound support? Where are the developers of Qemu? it would be very nice

  1   2   3   4   5   6   7   8   9   >