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>] [day] [month] [year] [list]
Date:   Wed, 12 Jul 2023 14:56:43 +0800
From:   shijie001@...suo.com
To:     tglx@...utronix.d, mingo@...hat.com, bp@...en8.de,
        dave.hansen@...ux.intel.com, x86@...nel.org
Cc:     hpa@...or.com, kvm@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] KVM: x86: Fix warnings in kvm_cache_regs.h

The following checkpatch warnings are removed:
WARNING: Missing a blank line after declarations

Signed-off-by: Jie Shi <shijie001@...suo.com>
---
  arch/x86/kvm/kvm_cache_regs.h | 2 ++
  1 file changed, 2 insertions(+)

diff --git a/arch/x86/kvm/kvm_cache_regs.h 
b/arch/x86/kvm/kvm_cache_regs.h
index 75eae9c4998a..0e3808b40974 100644
--- a/arch/x86/kvm/kvm_cache_regs.h
+++ b/arch/x86/kvm/kvm_cache_regs.h
@@ -151,6 +151,7 @@ static inline void kvm_pdptr_write(struct kvm_vcpu 
*vcpu, int index, u64 value)
  static inline ulong kvm_read_cr0_bits(struct kvm_vcpu *vcpu, ulong 
mask)
  {
      ulong tmask = mask & KVM_POSSIBLE_CR0_GUEST_BITS;
+
      if ((tmask & vcpu->arch.cr0_guest_owned_bits) &&
          !kvm_register_is_available(vcpu, VCPU_EXREG_CR0))
          static_call(kvm_x86_cache_reg)(vcpu, VCPU_EXREG_CR0);
@@ -173,6 +174,7 @@ static inline ulong kvm_read_cr0(struct kvm_vcpu 
*vcpu)
  static inline ulong kvm_read_cr4_bits(struct kvm_vcpu *vcpu, ulong 
mask)
  {
      ulong tmask = mask & KVM_POSSIBLE_CR4_GUEST_BITS;
+
      if ((tmask & vcpu->arch.cr4_guest_owned_bits) &&
          !kvm_register_is_available(vcpu, VCPU_EXREG_CR4))
          static_call(kvm_x86_cache_reg)(vcpu, VCPU_EXREG_CR4);

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ