lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241217104535.167-1-hdanton@sina.com>
Date: Tue, 17 Dec 2024 18:45:34 +0800
From: Hillf Danton <hdanton@...a.com>
To: Liju-clr Chen <liju-clr.chen@...iatek.com>,
	Kevenny Hsieh <kevenny.hsieh@...iatek.com>
Cc: LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v13 23/25] virt: geniezone: Add support for guest VM CPU idle

On Thu, 14 Nov 2024 18:08:00 +0800
> +/**
> + * gzvm_vcpu_wakeup_all - wakes up all vCPUs associated with the specified
> + * gzvm.
> + * @gzvm: Pointer to gzvm structure.
> + */
> +void gzvm_vcpu_wakeup_all(struct gzvm *gzvm)
> +{
> +	for (int i = 0; i < GZVM_MAX_VCPUS; i++) {
> +		if (gzvm->vcpus[i]) {
> +			gzvm->vcpus[i]->idle_events.virtio_irq += 1;
> +			rcuwait_wake_up(&gzvm->vcpus[i]->wait);
> +		}
> +	}
> +}
> +
>  static enum hrtimer_restart gzvm_vtimer_expire(struct hrtimer *hrt)
>  {
> +	struct gzvm_vcpu *vcpu;
> +
> +	vcpu = container_of(hrt, struct gzvm_vcpu, gzvm_vtimer);
> +
> +	gzvm_vcpu_wakeup_all(vcpu->gzvm);
> +
Given vcpu, what sense could thunder herd make?

>  	return HRTIMER_NORESTART;
>  }

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ