Autodetection of pv/hvm.