/* The total size of the config page used by this device (incl. desc)  */
static unsigned desc_size(const struct kvm_device_desc *desc)
/* The total size of the config page used by this device (incl. desc)  */
static unsigned desc_size(const struct kvm_device_desc *desc)
{
	return sizeof(*desc)
		+ desc->num_vq * sizeof(struct kvm_vqconfig)
		+ desc->feature_len * 2
		+ desc->config_len;
}