In the trial of every criminal case, the court, whether a court of record or a court not of record, may upon its own motion and shall upon the motion of either the attorney for the Commonwealth or any defendant, require the exclusion of every witness to be called, including, but not limited to, police officers or other investigators; however, each defendant who is an individual and one officer or agent of each defendant which is a corporation or association shall be exempt from the rule of this section as a matter of right. Additionally, any victim as defined in § 19.2-11.01 who is to be called as a witness shall be exempt from the rule of this section as a matter of law unless, in accordance with the provisions of § 19.2-265.01, his exclusion is otherwise required.
Va. Code § 19.2-265.1