Historically, the kernel lazily allocates device BAR values as drivers
request them. But empirically, this can result in register reads of all
1's for some devices (e.g., virtio console). If instead, the driver
pre-populates a device's BAR with values from the parent bus, register
reads and writes work correctly.
The approach here mimics what the Linux kernel does, including disabling
MEMEN as Hyper-V (evidently) ignores BAR updates with MEMEN set.