[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-discuss] aarch64 ivshmem issues

From: Meng Xu
Subject: [Qemu-discuss] aarch64 ivshmem issues
Date: Sun, 10 Jan 2016 08:07:31 -0500

Hi All,

I am using the ivshmem device to create shared memory between an x86_64 host 
and aarch64 guest.
The guest has ubuntu server 14.04 installed with kernel version 3.13.0. I wrote 
a kernel driver to
drive the ivshmem device (as a pci driver) however, the driver was never 

Can anyone help me point out what is wrong? 

My qemu launch script looks like this:
qemu-system-aarch64 -machine virt,highmem=off -cpu cortex-a57 -m 1024M \
        -drive file=<path-to-img>,id=hd0,if=none,format=qcow2 \
        -device virtio-blk-device,drive=hd0 \
        -device ivshmem,shm=vshmtest,size=16M \
        -kernel <path-to-kernel> \
        -initrd <path-to-initrd> \

The skeleton of the kernel driver is like this:
static struct pci_device_id vshmem_id_table[] = {
        { 0x1af4, 0x1110, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },
        { 0 },

static struct pci_driver vshmem_driver = {
        .name   = “vshmtest”,
        .id_table       = vshmem_id_table,
        .probe  = vshmem_probe_device,
        .remove = vshmem_remove_device,

somewhere in module init:

The same driver code works well with x86_64 and ppc64.

Best Regards,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]