Page Fault Handling in TCG mode

2021-11-08 Thread Arnabjyoti Kalita
Hello all, I am trying to understand how page faults happen when a guest is executing in TCG mode. Specifically, how does TCG determine at which instruction pointer did page fault happen? Which functions in the TCG code flow get called when it detects that memory is not present in the page table?

Re: Guest Ubuntu 18.04 fails to boot with -serial mon:stdio, cannot find ttyS0.

2021-11-08 Thread David Fernandez
On 08/11/2021 22:00, David Fernandez wrote: > On 08/11/2021 21:19, David Fernandez wrote: >> On 08/11/2021 20:57, David Fernandez wrote: >>> On 08/11/2021 20:50, Peter Maydell wrote: On Mon, 8 Nov 2021 at 20:22, David Fernandez wrote: > Is there a specific branch I should use? Could

Re: Guest Ubuntu 18.04 fails to boot with -serial mon:stdio, cannot find ttyS0.

2021-11-08 Thread David Fernandez
On 08/11/2021 21:19, David Fernandez wrote: > On 08/11/2021 20:57, David Fernandez wrote: >> On 08/11/2021 20:50, Peter Maydell wrote: >>> On Mon, 8 Nov 2021 at 20:22, David Fernandez >>> wrote: Is there a specific branch I should use? Could not see more than 2.12 in git.qemu.org

Re: Guest Ubuntu 18.04 fails to boot with -serial mon:stdio, cannot find ttyS0.

2021-11-08 Thread David Fernandez
On 08/11/2021 20:57, David Fernandez wrote: > On 08/11/2021 20:50, Peter Maydell wrote: >> On Mon, 8 Nov 2021 at 20:22, David Fernandez >> wrote: Does the x86-64 host still work OK >> if you run it with KVM turned off >> (ie matching the aarch64 host setup) ? >>> Have not tried that... is there

Re: Guest Ubuntu 18.04 fails to boot with -serial mon:stdio, cannot find ttyS0.

2021-11-08 Thread David Fernandez
On 08/11/2021 20:50, Peter Maydell wrote: > On Mon, 8 Nov 2021 at 20:22, David Fernandez wrote: >> Hi Peter, >> >> Answers in line. >> >> On 08/11/2021 19:59, Peter Maydell wrote: >>> On Mon, 8 Nov 2021 at 18:05, David Fernandez >>> wrote: I am running qemu-system-x86_64 on aarch64 running

Re: Guest Ubuntu 18.04 fails to boot with -serial mon:stdio, cannot find ttyS0.

2021-11-08 Thread Peter Maydell
On Mon, 8 Nov 2021 at 20:22, David Fernandez wrote: > > Hi Peter, > > Answers in line. > > On 08/11/2021 19:59, Peter Maydell wrote: > > On Mon, 8 Nov 2021 at 18:05, David Fernandez > > wrote: > >> I am running qemu-system-x86_64 on aarch64 running Ubuntu 18.04 as both > >> guest and host. > >>

Re: Guest Ubuntu 18.04 fails to boot with -serial mon:stdio, cannot find ttyS0.

2021-11-08 Thread David Fernandez
On 08/11/2021 20:21, David Fernandez wrote: > Hi Peter, > > Answers in line. > > On 08/11/2021 19:59, Peter Maydell wrote: >> On Mon, 8 Nov 2021 at 18:05, David Fernandez >> wrote: >>> I am running qemu-system-x86_64 on aarch64 running Ubuntu 18.04 as both >>> guest and host. >>> >>> I couldn't g

Re: Guest Ubuntu 18.04 fails to boot with -serial mon:stdio, cannot find ttyS0.

2021-11-08 Thread David Fernandez
Hi Peter, Answers in line. On 08/11/2021 19:59, Peter Maydell wrote: > On Mon, 8 Nov 2021 at 18:05, David Fernandez wrote: >> I am running qemu-system-x86_64 on aarch64 running Ubuntu 18.04 as both >> guest and host. >> >> I couldn't get the stock qemu-system-x86_04 to boot correctly, as it was

Re: Guest Ubuntu 18.04 fails to boot with -serial mon:stdio, cannot find ttyS0.

2021-11-08 Thread Peter Maydell
On Mon, 8 Nov 2021 at 18:05, David Fernandez wrote: > I am running qemu-system-x86_64 on aarch64 running Ubuntu 18.04 as both > guest and host. > > I couldn't get the stock qemu-system-x86_04 to boot correctly, as it was > an old version 2.11.1, I decided to recompile from sources to see if > that

Guest Ubuntu 18.04 fails to boot with -serial mon:stdio, cannot find ttyS0.

2021-11-08 Thread David Fernandez
Hi there, I am running qemu-system-x86_64 on aarch64 running Ubuntu 18.04 as both guest and host. I couldn't get the stock qemu-system-x86_04 to boot correctly, as it was an old version 2.11.1, I decided to recompile from sources to see if that would fix the problem, but the problem still pers

Re: Unable to boot Fedora LiveCD from USB pendrive with qemu-system

2021-11-08 Thread Thomas Huth
On 07/11/2021 16.30, Marcin ZajÄ…czkowski wrote: Hi. Having some (dracut-related) issues with a Fedora LiveCD installed on a pendrive, I wanted to play with it using qemu instead of a real computer. Unfortunately, while the pendrive boot fine in real, with qemu, I ended up with "Booting from Hard