[dpdk-dev] Virtio pci legacy support

Stephen Hemminger stephen at networkplumber.org
Tue Nov 12 18:23:31 CET 2019


Since Linux kernel is going to drop support for iopl real soon now.
Is there any ongoing effort to either drop Legacy virtio support, 
or replace iopl with ioperm, or at least test with iopl failing?

Note: it looks like the current code does not match comment.

/*
 * Request iopl privilege for all RPL, returns 0 on success
 * iopl() call is mostly for the i386 architecture. For other architectures,
 * return -1 to indicate IO privilege can't be changed in this way.
 */
int
rte_eal_iopl_init(void)
{
#if defined(RTE_ARCH_X86)
	if (iopl(3) != 0)
		return -1;
#endif
	return 0;
}


More information about the dev mailing list