Usually, a driver is deployed to allow the testbench to drive an interface to the DUT. If your driver needs to know what state some AHB signals are in to be able to drive the APB interface directly, then it’s OK to pass the AHB virtual interface to the driver. Note that this limits your ability to reuse your APB agent in a strictly APB environment in the future, but you may not care about that.