Va. Code Ann. § 19.2-331
Payment shall not be made out of the state treasury to a witness attending for the Commonwealth in any prosecution for a misdemeanor unless it appears that the sum to which the witness is entitled cannot be obtained:
Code 1950, § 19.1-314; 1960, c. 366; 1975, c. 495.