from the code:
https://lis.virginia.gov/cgi-bin/leg...19VAC30-70-360
1. Signal devices are not required on motorcycles; however, if installed, they must operate and be inspected.
2...
3. Signal lamps installed on the rear of the motorcycle shall be red or amber and shall be located on each side of the vertical centerline of the motorcycle as far apart as practicable but not closer than nine inches, measured from the optical centerline of the lens, and shall be located on the same level and not less than 20 inches above the ground level.
so, strictly speaking they're not legal because they're closer together than 9 inches.
edit: "from optical centerline of lens"... so if the center of the left "half" of the integrated light is 9 inches or more from the center of the right "half" of the lens, you'll be okay i think.
mathematically this means you need an 18" wide rear light... which you probably don't have.