git: af1dd9cf3d9b - stable/15 - amd64/vmm: Remove useless global variables

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Tue, 18 Nov 2025 15:02:51 UTC
The branch stable/15 has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=af1dd9cf3d9b99234f30a9325973daf488c0e40e

commit af1dd9cf3d9b99234f30a9325973daf488c0e40e
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2025-11-04 13:54:07 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2025-11-18 14:57:31 +0000

    amd64/vmm: Remove useless global variables
    
    No functional change intended.
    
    Reviewed by:    corvink, jhb, emaste
    MFC after:      2 weeks
    Sponsored by:   The FreeBSD Foundation
    Sponsored by:   Klara, Inc.
    Differential Revision:  https://reviews.freebsd.org/D53420
    
    (cherry picked from commit 3faad9e26018dfc0ab6da21a53c0310656187d7b)
---
 sys/amd64/vmm/vmm.c | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/sys/amd64/vmm/vmm.c b/sys/amd64/vmm/vmm.c
index 92d1b310f6ea..8f357fa6fb0f 100644
--- a/sys/amd64/vmm/vmm.c
+++ b/sys/amd64/vmm/vmm.c
@@ -573,12 +573,6 @@ vm_unlock_vcpus(struct vm *vm)
 	sx_unlock(&vm->vcpus_init_lock);
 }
 
-/*
- * The default CPU topology is a single thread per package.
- */
-u_int cores_per_package = 1;
-u_int threads_per_core = 1;
-
 int
 vm_create(const char *name, struct vm **retvm)
 {
@@ -609,8 +603,8 @@ vm_create(const char *name, struct vm **retvm)
 	    M_ZERO);
 
 	vm->sockets = 1;
-	vm->cores = cores_per_package;	/* XXX backwards compatibility */
-	vm->threads = threads_per_core;	/* XXX backwards compatibility */
+	vm->cores = 1;		/* XXX backwards compatibility */
+	vm->threads = 1;	/* XXX backwards compatibility */
 	vm->maxcpus = vm_maxcpu;
 
 	vm_init(vm, true);