[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: New Hardware model emulation
From: |
Stefan Hajnoczi |
Subject: |
Re: New Hardware model emulation |
Date: |
Tue, 3 Mar 2020 10:46:17 +0000 |
On Tue, Mar 3, 2020 at 7:45 AM Priyamvad Acharya
<address@hidden> wrote:
Please use Reply-All when replying to mailing list emails so that
address@hidden is included in the CC list. That way the
discussion stays on the mailing list.
> Hi,
> I have written code to emulate a custom PCI device.
> Now I want to run custom device with Qemu, so that user application can
> perform read/write operation with custom PCI device.
> So what is the method to do it?
1. Add the source file somewhere below hw/.
2. Add a make rule to build the object file in Makefile.objs in the
same directory as the source file.
3. Compile QEMU and run with -device testpci.
> I am new to emulating a custom device model in Qemu, so request you to
> explain me in that way.
Reading the source code is necessary to understand how things work.
You can find many examples of devices in the hw/ directory. Using
git-log(1) can be helpful because it shows how new devices were
introduced.
Stefan
- Re: New Hardware model emulation, Stefan Hajnoczi, 2020/03/02
- Message not available
- Re: New Hardware model emulation,
Stefan Hajnoczi <=
- Re: New Hardware model emulation, Stefan Hajnoczi, 2020/03/03
- Re: New Hardware model emulation, Priyamvad Acharya, 2020/03/03
- Re: New Hardware model emulation, Stefan Hajnoczi, 2020/03/03
- Re: New Hardware model emulation, Priyamvad Acharya, 2020/03/04
- Re: New Hardware model emulation, Stefan Hajnoczi, 2020/03/04
- Re: New Hardware model emulation, Priyamvad Acharya, 2020/03/04
- Re: New Hardware model emulation, Priyamvad Acharya, 2020/03/04