1. A method comprising: receiving, by a processing device executing a hypervisor, a first request pertaining to a multi-function device managed by the hypervisor from a guest operating system of a virtual machine, the multi-function device comprising a main function and a plurality of sub-functions, the first request identifying an address within a configuration space associated with a sub-function of the plurality of sub-functions; identifying a first portion of the address of the configuration space associated with the sub-function that indicates the sub-function of the plurality of sub-functions; changing the first portion of the address that indicates the sub-function to a second portion of the address indicating the main function of the device; accessing, by the hypervisor, a data structure associated with the main function using the second portion of the address to obtain an indicator of availability of the main function to the guest operating system; determining whether the hypervisor is initializing at least one of the sub-functions of the plurality of sub-functions associated with the main function; and responsive to determining that the hypervisor is initializing at least one of the sub-functions of the plurality of sub-functions, rejecting, by the hypervisor, the first request.