void virtio_config_writeb(VirtIODevice *vdev, uint32_t addr, uint32_t data)

{

    VirtioDeviceClass *k = VIRTIO_DEVICE_GET_CLASS(vdev);

    uint8_t val = data;



    if (addr > (vdev->config_len - sizeof(val)))

        return;



    stb_p(vdev->config + addr, val);



    if (k->set_config) {

        k->set_config(vdev, vdev->config);

    }

}
