Any process involved directly in viral genome replication, including viral nucleotide metabolism. [ ISBN:0781702534 ]