[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 3/4] x86/vmx: replace enum vmx_msr_intercept_type with the msr access flags
- To: Xenia Ragiadakou <burzalodowa@xxxxxxxxx>
- From: Jan Beulich <jbeulich@xxxxxxxx>
- Date: Tue, 28 Feb 2023 15:31:30 +0100
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Pv4EdgUVDSm0rESOZB0VKrF8/u6rEpZrieWIiEu8SUE=; b=fgtUVxmu8AFTsvDOx7OHWsCENDaM80yNQ3qffNVeoBIBZgGlPpSJcQ3LXhf8WpFbTXeiOYgCT1D72ALvlMLnqQ9+Zb8yX3jrzyS7xb7tLxoKncxA6Vf9x8j2olYriXO8DowfdEI4JpKHir8nb+sWzDqhx0L8eDf5Z/xZ9Ous79IYhs9X+/HDtKVPjfEC5q9X0YH8dd+uSqB1fQZ5FJIKYgajBrwNCHrdiUum8F/XM7W3mbteFTdnC3VLyMwBBS7ppi1gPiu8kQOPKenmpGczy8q30Vqyeqq0EUWEmzIySNB0ODfaJAHU5uurG1Oyzsz6u3bZ/7Dtuib8nKaF1SrpoQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kY+XqersIbuYaYW81vcZpdQPnHfUeZNF6dM+mYggICYIAskaCpWKIlv4f9kUparAAYdDoDrO+t3gpAd/+6udMpfyK8JXXVCkcaMGZ3mRjW2rF/uBLapT0b0Fe54nDFJqmg+MI1WJXa3ZIINsyv9bC99OO29PRKkL5r32/UCbjEf7ClMQDHht1g9JJgF34rPKQVBVqWBRyGap2YDTMThvIcQSlH50t04A+LFlWgzJc0f0E65OxqEKf/ceyx8CzHrWPqqDz5d50adXc9IDC2D1WxHeZytyrJzg0jsXBKv72fpWmS3f2wDlO5apzAdU4Ps2dWb/gb0Q11gYu1bmWTnt4Q==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
- Cc: Jun Nakajima <jun.nakajima@xxxxxxxxx>, Kevin Tian <kevin.tian@xxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
- Delivery-date: Tue, 28 Feb 2023 14:32:17 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 27.02.2023 08:56, Xenia Ragiadakou wrote:
> --- a/xen/arch/x86/include/asm/hvm/vmx/vmcs.h
> +++ b/xen/arch/x86/include/asm/hvm/vmx/vmcs.h
> @@ -644,18 +644,8 @@ static inline int vmx_write_guest_msr(struct vcpu *v,
> uint32_t msr,
> return 0;
> }
>
> -
> -/* MSR intercept bitmap infrastructure. */
> -enum vmx_msr_intercept_type {
> - VMX_MSR_R = 1,
> - VMX_MSR_W = 2,
> - VMX_MSR_RW = VMX_MSR_R | VMX_MSR_W,
> -};
> -
> -void vmx_clear_msr_intercept(struct vcpu *v, unsigned int msr,
> - enum vmx_msr_intercept_type type);
> -void vmx_set_msr_intercept(struct vcpu *v, unsigned int msr,
> - enum vmx_msr_intercept_type type);
> +void vmx_clear_msr_intercept(struct vcpu *v, unsigned int msr, int type);
> +void vmx_set_msr_intercept(struct vcpu *v, unsigned int msr, int type);
unsigned int please again for the last parameter each.
Jan
|