Menu

MetaROUTERhypercallAPI

Anonymous

int vm_create_queue(unsigned id, unsigned irq, unsigned tx, unsigned rx);

id: queue id

irq: interrupt id

tx: pointer to guest-to-host instance of "struct vdma_descr"

rx: pointer to host-to-guest instance of "struct vdma_descr"

int vm_release_queue(unsigned id);

id: queue id

int vm_running(void);

not yet understood

int vm_setup_irqs(unsigned *irqs, unsigned count);

irqs: pointer to unsigned value to be used as interrupt bit-field

count: number of interrupts supported

**struct vdma_descr
{

unsigned addr;
unsigned size;
unsigned next;

}**

addr: pointer to data buffer

size: MSBit is a DONE flag; the remaining bits represent a data length field

next: pointer to next struct vdma_descr (some queues have a circular linked list, where the last entry points back to the first; other queues have a single entry and set this field to NULL)


Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.