It is common for both dom0 and VM, and also quite linux-specific (other OSes will need other implementation). So move to linux-specific repo (not dom0-specific).
'static-max' as read from xenstore is string, so needs to be converted to int. Additionally units needs to be adjusted (MB vs kB).