+ */
+int arch_has_restricted_memory_access(struct virtio_device *dev)
+{
+ if (!is_prot_virt_guest())
+ return 0;
If you just did a
return is_prot_virt_guest();
and did the virtio feature stuff in the virtio core, this function
would be short and sweet :)