Imprisonment for conviction of a felony shall be by confinement in a state correctional facility, unless in Class 5 and Class 6 felonies the jury or court trying the case without a jury fixes the punishment at confinement in jail. Imprisonment for conviction of a misdemeanor shall be by confinement in jail.
Va. Code § 18.2-15