Both automakers operate factories in the city as part of joint ventures with SAIC Motor.
A GM spokesperson informed Reuters that its manufacturing facilities were operating normally.
The lockdown in Shanghai was announced on Sunday. It will be in place for nine days to allow for “staggered” coronavirus testing.
Volkswagen Group China said its operations in Anting, Shanghai are not affected by the lockdown.
About 147,437 people in China, have been confirmed as being infected with the coronavirus. The virus has killed 4,638 people in the country. Although these figures are heavily disputed and experts say the government has deliberately under-reported the figures.