On 06/06/15 20:37, Robert Millan wrote:
El 06/06/15 a les 22:34, Robert Millan ha escrit:
El 31/05/15 a les 13:34, Robert Millan ha escrit:
Okay. I assume you'll want to make code dependencies time-consistent,
so here's my first patch to add
the rumpcomp_pci_init() interface in pci_user.h.

I'll send a followup for pci-userspace, then back to libpci.

Second patch, implementing rumpcomp_pci_init() in pci-userspace module
based on the prototype from main Rump.

And finally, call rumpcomp_pci_init() from libpci to enable I/O support.

The patch should retain backward compatibility to existing implementations of the pci hypercall interface, see rumpcomp_pci_free.

+       error = rumpcomp_pci_init(0, &caps);
+       if (error != 0) {
+               aprint_error("pci: unable to raise I/O privilege level (error 
%d)\n", error);
+       } else {
+               pba.pba_flags |= PCI_FLAGS_IO_OKAY;
+       }

Is that print necessary? "dmesg" will already contain the information of I/O space being available or not. I'm undecided.

+int rumpcomp_pci_init(int, int *);

Now that rumpcomp_userfeatures_pci.h is available, that signature can be simplified.

Reply via email to