|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [v3][PATCH 04/16] xen/passthrough: extend hypercall to support rdm reservation policy
On 2015/6/17 18:11, Jan Beulich wrote: On 11.06.15 at 03:15, <tiejun.chen@xxxxxxxxx> wrote:@@ -899,7 +899,7 @@ int set_mmio_p2m_entry(struct domain *d, unsigned long gfn, mfn_t mfn, } int set_identity_p2m_entry(struct domain *d, unsigned long gfn, - p2m_access_t p2ma) + p2m_access_t p2ma, u32 flag)Please avoid using fixed width types unless really needed. Using uint32_t in the public interface is the right thing to do, but in all internal parts affected this can simply be (unsigned) int. Will do.
You're right and thanks.
Yeah. Maybe I can set this comment,/* Make sure this is always the last. */ #define XEN_DOMCTL_DEV_NO_RDM 2
uint32_t flag; /* flag of assigned device */
and then
flag = domctl->u.assign_device.flag;
if ( flag > XEN_DOMCTL_DEV_NO_RDM )
{
printk(XENLOG_G_ERR "XEN_DOMCTL_assign_device: "
"assign %04x:%02x:%02x.%u to dom%d failed "
"with unknown rdm flag %x. (%d)\n",
seg, bus, PCI_SLOT(devfn), PCI_FUNC(devfn),
d->domain_id, flag, ret);
ret = -EINVAL;
break;
}
Thanks
Tiejun
Jan _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |