Re: [kvm-unit-tests PATCH] x86: pci: Support unaligned register access in PCI config read/write
Jim Mattson <[email protected]> Mon, 3 Aug 2026 16:48:07 -0700
| Newsgroups | org.kernel.vger.kvm |
|---|---|
| Message-ID | <CALMp9eTtzvjCwR3wuWFxA61WtfaQJG6dvjxz4mjRf_CBRwrtYg@mail.gmail.com> |
On Fri, Jul 31, 2026 at 2:39=E2=80=AFPM Irene Wang <[email protected]= m> wrote: > Since crossing DWORD boundaries is also not spec-compliant (PCI Local > Bus Spec Section 6.1 requires registers to be naturally aligned), I'm > thinking it makes sense to add an assertion here (e.g., > `assert((reg & 3) !=3D 3)`) to catch any invalid test cases added in the > future. What do you think? SGTM.