+ /* + * Shared folios would not be marked as "guestmem" so far, and we only + * expect shared folios at this point. + */ + if (WARN_ON_ONCE(folio_test_guestmem(folio))) { + ret = VM_FAULT_SIGBUS; + goto out_folio; + }
With that dropped for now Acked-by: David Hildenbrand <david@xxxxxxxxxx> -- Cheers, David / dhildenb