Anything non-factory is considered illegal. Note that "good working order" and "excessive or unusual levels of noise" is just vague enough to make any cop an exhaust pro. Compound that with the fact they don't have to measure db and will give zero consideration for CARB exemption and you can just about guarantee you get a ticket for that shiny thing under the rear.
FFXCPD and Commonwealth Troopers are notorious for these BS tickets.
46.2-1049. Exhaust system in good working order.
No person shall drive and no owner of a vehicle shall permit or allow the operation of any such vehicle on a highway unless it is equipped with an exhaust system in good working order and in constant operation to prevent excessive or unusual levels of noise; provided however, that for motor vehicles, such exhaust system shall be of a type installed as standard factory equipment, or comparable to that designed for use on the particular vehicle as standard factory equipment. An exhaust system shall not be deemed to prevent excessive or unusual noise if it permits the escape of noise in excess of that permitted by the standard factory equipment exhaust system of private passenger motor vehicles or trucks of standard make.
The term "exhaust system," as used in this section, means all the parts of a vehicle through which the exhaust passes after leaving the engine block, including mufflers and other sound dissipative devices.
Chambered pipes are not an effective muffling device to prevent excessive or unusual noise, and any vehicle equipped with chambered pipes shall be deemed in violation of this section.