A virus is a part of the malware, so you can say all viruses are malware. But all malware are not viruses.