How to kick off second NUMA node

2024-07-26 Thread yfliu2008
Dear experts,




I  am using "qemu-system-riscv32" v6.2 on Ubuntu 22.04 with "virt" machine  
type with two NUMA nodes, each node has  only one CPU, I have loaded  two 
programs for the two nodes respectively. 




From  dtb dump I can see two  CLINT and two PLIC devices, I also added a  
virtio-serial device for the other NUMA node to use as console.





After  launching QEMU, I can use first node's program correctly via serial  
console. That means the boot ROM has kicked off the first node  correctly. But 
the program for the other numa node doesn't run yet.  Is  this the default 
behavior of NUMA by design?





I  want know how to  kick off the other NUMA node, I also want 
know how  to achieve inter-node or inter processor interruptions as 
well. 




But I can't find any materials via Internet searches. Could you give me some 
hints? 




Regards,

yf

accessing guest memory buffer

2024-09-07 Thread yfliu2008
Dear community,




Suppose the QEMU guest device has a circular buffer of logs in memory, is  
there a way to retrieve them and display them from QEMU host side?





Regards,

yf

Re:Re: qemu-system-arm -nographic question

2024-10-14 Thread yfliu2008
Peter and Ged, thank you very much for sharing your experiences.


I tried ^H, DEL before sending the email, they both don't work.



NuttX with ns16550 driver works fine with QEMU riscv, the problem happens with 
NuttX with pl011 driver and QEMU arm only. If the QEMU side has no differences, 
then it may be NuttX guest side issue.




Regards,

yf




   
Original
   
 

From:"Peter Maydell"< peter.mayd...@linaro.org >;

Date:2024/10/14 18:23

To:"G.W. Haywood"< q...@jubileegroup.co.uk >;

CC:"qemu-discuss"< qemu-discuss@nongnu.org >;

Subject:Re: qemu-system-arm -nographic question


On Mon, 14 Oct 2024 at 11:12, G.W. Haywood  wrote:
>
> Hi there,
>
> On Mon, 14 Oct 2024, yfliu2008 wrote:
>
> > When using "qemu-system-arm -M virt -nographic" using QEMU v6.2 on
> > Ubuntu 22.04, it seems the "Backspace" key doesn't work,  are
> > there any solutions?
>
> Bear in mind that most keyboards are programmable, and one man's
> backspace is another man's DEL or CTRL-H which is what I'd try first.

Right. '-nographic' is just sending the host terminal input
to the guest serial port. Backspace works for me, so the
problem is likely either (a) the guest config or (b) the
host config (and my first guess would be (a) here).

Unfortunately keyboard handling has a lot of different layers of
software between your keypress and something actually happening,
and with a VM setup there are now two copies of these layers, so
it's not easy to say where exactly the problem might be. There
used to be Linux HOWTO documents purely on the questions of
backspace and delete and how to configure things :-)

-- PMM

qemu-system-arm -nographic question

2024-10-14 Thread yfliu2008
Dear community,




When using "qemu-system-arm -M virt -nographic" using QEMU v6.2 on Ubuntu 
22.04, it seems the "Backspace" key doesn't work,  are there any solutions?




Thanks!

yf

add sp804 timer to virt 6.2 target

2024-10-24 Thread yfliu2008
Dear community,




I am wondering if the qemu-system-arm v6.2 "virt" target allows one to add 
memory mapped sp804 timer device? if so, what command line options shall be 
used?




Regards,

yf